/*
Theme Name: Trindade Clássico
Theme URI: https://julianotrindade.com.br/
Author: Juliano Trindade
Author URI: https://julianotrindade.com.br/
Description: Tema editorial, clássico e leve para escritório especializado em Direito de Família, Sucessões e Direito Internacional.
Version: 1.0.5
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
Text Domain: trindade-classico
*/

:root {
  --jt-ink: #171918;
  --jt-navy: #10283a;
  --jt-navy-deep: #091b29;
  --jt-brass: #a37a43;
  --jt-brass-light: #d2b178;
  --jt-ivory: #f5f1e8;
  --jt-paper: #fffdf9;
  --jt-muted: #62645f;
  --jt-line: #dcd4c7;
  --jt-shadow: 0 18px 50px rgba(16, 40, 58, .10);
  --jt-serif: Georgia, "Times New Roman", Times, serif;
  --jt-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --jt-container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--jt-ink);
  background: var(--jt-paper);
  font-family: var(--jt-sans);
  font-size: 17px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--jt-navy); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--jt-brass); }
button, input, textarea, select { font: inherit; }
:focus-visible { outline: 3px solid rgba(163, 122, 67, .55); outline-offset: 3px; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
  z-index: 100000; top: 12px; left: 12px; width: auto; height: auto;
  padding: 12px 18px; clip: auto; color: #fff; background: var(--jt-navy);
}
.jt-container { width: min(calc(100% - 44px), var(--jt-container)); margin-inline: auto; }

/* Header */
.site-header {
  position: relative;
  z-index: 100;
  background: rgba(255, 253, 249, .97);
  border-bottom: 1px solid var(--jt-line);
}
.site-header__inner {
  min-height: 112px;
  display: grid;
  grid-template-columns: minmax(190px, 320px) 1fr auto;
  align-items: center;
  gap: 32px;
}
.site-branding { display: inline-flex; align-items: center; text-decoration: none; }
.site-branding img { width: 102px; height: 102px; object-fit: contain; }
.site-title { margin: 0; color: var(--jt-ink); font: 700 2rem/1 var(--jt-serif); letter-spacing: .04em; }
.site-description { margin: 8px 0 0; color: var(--jt-muted); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
.primary-menu { display: flex; justify-content: flex-end; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.primary-menu li { position: relative; }
.primary-menu a {
  display: flex; align-items: center; min-height: 46px; padding: 0 14px;
  color: var(--jt-ink); font-size: .91rem; font-weight: 600; text-decoration: none;
  transition: color .2s ease, background .2s ease;
}
.primary-menu a:hover { color: var(--jt-brass); }
.primary-menu .sub-menu {
  position: absolute; top: 100%; left: 0; min-width: 260px; margin: 0; padding: 10px;
  visibility: hidden; opacity: 0; transform: translateY(8px); list-style: none;
  background: var(--jt-paper); border: 1px solid var(--jt-line); box-shadow: var(--jt-shadow);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.primary-menu li:hover > .sub-menu, .primary-menu li:focus-within > .sub-menu { visibility: visible; opacity: 1; transform: none; }
.primary-menu .sub-menu a { min-height: 40px; padding: 8px 12px; line-height: 1.35; }
.header-contact {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px;
  color: #fff; background: var(--jt-navy); border: 1px solid var(--jt-navy); text-decoration: none;
  font-size: .86rem; font-weight: 700; letter-spacing: .02em;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.header-contact:hover { color: #fff; background: var(--jt-navy-deep); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(9, 27, 41, .18); }
.menu-toggle { display: none; width: 48px; height: 44px; padding: 0; border: 1px solid var(--jt-line); background: transparent; }
.menu-toggle > span[aria-hidden="true"], .menu-toggle::before, .menu-toggle::after { content: ""; display: block; width: 22px; height: 2px; margin: 5px auto; background: var(--jt-navy); transition: transform .2s ease; }

/* Shared typography and controls */
.jt-eyebrow { margin: 0 0 18px; color: var(--jt-brass); font-size: .78rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
h1, h2, h3, h4 { color: var(--jt-navy-deep); font-family: var(--jt-serif); font-weight: 500; line-height: 1.1; text-wrap: balance; }
h1 { font-size: clamp(2.65rem, 5vw, 4.65rem); }
h2 { font-size: clamp(2.15rem, 4.2vw, 3.9rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.8rem); }
.jt-lead { max-width: 760px; color: #454945; font-size: clamp(1.06rem, 1.6vw, 1.3rem); }
.jt-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px;
  padding: 0 24px; border: 1px solid var(--jt-navy); color: #fff; background: var(--jt-navy);
  text-decoration: none; font-size: .92rem; font-weight: 750; letter-spacing: .025em;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease, color .22s ease;
}
.jt-button::after { content: "→"; transition: transform .22s ease; }
.jt-button:hover { color: #fff; background: var(--jt-navy-deep); transform: translateY(-3px); box-shadow: 0 13px 28px rgba(16, 40, 58, .2); }
.jt-button:hover::after { transform: translateX(4px); }
.jt-button--outline { color: var(--jt-navy); background: transparent; border-color: var(--jt-brass); }
.jt-button--outline:hover { color: var(--jt-navy-deep); background: #efe5d5; }
.jt-button--light {
  color: #fff;
  background: transparent;
  border-color: var(--jt-brass-light);
}
.jt-button--light:hover,
.jt-button--light:focus-visible {
  color: var(--jt-navy-deep);
  background: var(--jt-brass-light);
  border-color: var(--jt-brass-light);
}
.jt-button--light:active {
  color: var(--jt-navy-deep);
  background: #c49751;
  border-color: #c49751;
  transform: translateY(-1px);
}

/* Front page */
.jt-hero { position: relative; overflow: hidden; padding: clamp(58px, 7vw, 102px) 0 68px; background: var(--jt-ivory); }
.jt-hero::after {
  content: ""; position: absolute; inset: 0 0 0 auto; width: 38%; opacity: .52;
  background: linear-gradient(135deg, transparent 0 48%, rgba(163,122,67,.13) 48.2% 48.7%, transparent 49% 100%);
  pointer-events: none;
}
.jt-hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(320px, .9fr) minmax(0, 1.45fr); gap: clamp(44px, 6vw, 88px); align-items: center; }
.jt-hero__media { position: relative; margin: 0; aspect-ratio: 1; overflow: hidden; background: var(--jt-paper); box-shadow: var(--jt-shadow); }
.jt-hero__media::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(210,177,120,.58); pointer-events: none; }
.jt-hero__media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 26%; }
.jt-hero__content { min-width: 0; }
.jt-hero h1 { max-width: 900px; margin: 0 0 30px; }
.jt-hero .jt-lead { margin: 0 0 34px; }
.jt-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.jt-hero__aside { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 42px; border-top: 1px solid var(--jt-brass-light); background: var(--jt-line); }
.jt-hero__aside > div { min-width: 0; padding: 20px 16px 2px; background: rgba(255,253,249,.82); }
.jt-hero__aside strong { display: block; margin-bottom: 6px; color: var(--jt-navy); font: 500 1.12rem/1.25 var(--jt-serif); }
.jt-hero__aside span { display: block; margin-bottom: 18px; color: var(--jt-muted); font-size: .82rem; line-height: 1.45; }

.jt-proof { background: var(--jt-navy); color: #fff; }
.jt-proof__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.jt-proof__item { min-height: 190px; padding: 38px clamp(22px, 4vw, 54px); border-right: 1px solid rgba(255,255,255,.16); }
.jt-proof__item:last-child { border-right: 0; }
.jt-proof__number { display: block; color: var(--jt-brass-light); font: 500 clamp(2.6rem, 5vw, 4.4rem)/1 var(--jt-serif); }
.jt-proof__item strong { display: block; margin: 12px 0 4px; font-family: var(--jt-serif); font-size: 1.15rem; font-weight: 500; }
.jt-proof__item p { margin: 0; color: rgba(255,255,255,.72); font-size: .9rem; }

.jt-section { padding: clamp(76px, 10vw, 130px) 0; }
.jt-section--soft { background: #f8f5ef; }
.jt-section__head { display: grid; grid-template-columns: .68fr 1.32fr; gap: 60px; align-items: start; margin-bottom: 52px; }
.jt-section__head h2 { margin: 0; }
.jt-section__head p { margin: 6px 0 0; max-width: 700px; color: var(--jt-muted); }

.jt-services { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--jt-line); border-left: 1px solid var(--jt-line); }
.jt-service {
  position: relative; min-height: 270px; padding: 36px; color: var(--jt-ink); background: var(--jt-paper);
  border-right: 1px solid var(--jt-line); border-bottom: 1px solid var(--jt-line); text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.jt-service:hover { z-index: 2; color: var(--jt-ink); background: #fff; transform: translateY(-6px); box-shadow: var(--jt-shadow); }
.jt-service__index { color: var(--jt-brass); font: 500 1rem/1 var(--jt-serif); }
.jt-service h3 { margin: 56px 0 14px; }
.jt-service p { margin: 0; color: var(--jt-muted); font-size: .94rem; }
.jt-service::after { content: "→"; position: absolute; right: 28px; bottom: 24px; color: var(--jt-brass); font-size: 1.3rem; transition: transform .2s ease; }
.jt-service:hover::after { transform: translateX(5px); }

.jt-profile { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(46px, 8vw, 110px); align-items: center; }
.jt-profile__seal { aspect-ratio: 1; display: grid; place-items: center; padding: 48px; background: var(--jt-ivory); border: 1px solid var(--jt-line); }
.jt-profile__seal img { width: min(100%, 430px); }
.jt-profile h2 { margin: 0 0 26px; }
.jt-profile p { color: var(--jt-muted); }
.jt-profile__list { display: grid; gap: 12px; margin: 28px 0 34px; padding: 0; list-style: none; }
.jt-profile__list li { padding-left: 26px; position: relative; }
.jt-profile__list li::before { content: ""; position: absolute; left: 0; top: .75em; width: 12px; height: 1px; background: var(--jt-brass); }

.jt-journal { background: var(--jt-navy-deep); color: #fff; }
.jt-journal h2, .jt-journal h3 { color: #fff; }
.jt-journal .jt-section__head p { color: rgba(255,255,255,.67); }
.jt-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.jt-post-card { min-height: 350px; display: flex; flex-direction: column; padding: 32px; color: #fff; border: 1px solid rgba(255,255,255,.18); text-decoration: none; transition: transform .25s ease, background .25s ease, border-color .25s ease; }
.jt-post-card:hover { color: #fff; background: rgba(255,255,255,.055); border-color: var(--jt-brass-light); transform: translateY(-6px); }
.jt-post-card time { color: var(--jt-brass-light); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.jt-post-card h3 { margin: 48px 0 18px; font-size: 1.65rem; }
.jt-post-card p { margin: 0 0 30px; color: rgba(255,255,255,.7); font-size: .92rem; }
.jt-post-card__more { margin-top: auto; color: var(--jt-brass-light); font-weight: 700; font-size: .88rem; }
.jt-featured { margin-top: 22px; display: grid; grid-template-columns: .55fr 1.45fr auto; gap: 28px; align-items: center; padding: 30px 34px; color: var(--jt-ink); background: var(--jt-ivory); text-decoration: none; }
.jt-featured:hover { color: var(--jt-ink); background: #fff; }
.jt-featured__label { color: var(--jt-brass); font-size: .75rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.jt-featured strong { font: 500 clamp(1.25rem, 2.3vw, 1.9rem)/1.2 var(--jt-serif); }
.jt-featured__arrow { color: var(--jt-brass); font-size: 1.6rem; transition: transform .2s ease; }
.jt-featured:hover .jt-featured__arrow { transform: translateX(5px); }
.jt-journal__all { margin: 32px 0 0; }

.jt-cta { padding: clamp(70px, 9vw, 115px) 0; text-align: center; background: var(--jt-ivory); }
.jt-cta h2 { max-width: 850px; margin: 0 auto 24px; }
.jt-cta p { max-width: 660px; margin: 0 auto 32px; color: var(--jt-muted); }
.jt-cta .jt-actions { justify-content: center; }

/* Content templates */
.site-main { min-height: 55vh; }
.jt-entry, .jt-archive { width: min(calc(100% - 44px), 920px); margin: 0 auto; padding: clamp(64px, 8vw, 110px) 0; }
.jt-entry__header { margin-bottom: 46px; padding-bottom: 34px; border-bottom: 1px solid var(--jt-line); }
.jt-entry__header h1 { margin: 0; font-size: clamp(2.5rem, 5vw, 4.7rem); }
.jt-entry__meta { margin-top: 18px; color: var(--jt-muted); font-size: .85rem; letter-spacing: .05em; text-transform: uppercase; }
.jt-entry__content { font-family: var(--jt-serif); font-size: clamp(1.08rem, 1.4vw, 1.2rem); }
.jt-entry__content > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.jt-entry__content > .alignwide { max-width: 1080px; }
.jt-entry__content > .alignfull { max-width: none; width: 100vw; margin-left: calc(50% - 50vw); }
.jt-entry__content h2 { margin-top: 2em; font-size: clamp(1.9rem, 3vw, 2.8rem); }
.jt-entry__content h3 { margin-top: 1.8em; }
.jt-entry__content blockquote { padding: 24px 30px; border-left: 3px solid var(--jt-brass); background: var(--jt-ivory); }
.jt-entry__content a { color: #7c592a; }
.jt-entry__content img { margin-block: 32px; }
.elementor-page .site-main { max-width: none; }
.elementor-page .jt-elementor-content { width: 100%; }
.jt-elementor-content .elementor-heading-title { color: var(--jt-navy-deep); font-family: var(--jt-serif); font-weight: 500; line-height: 1.12; }
.jt-elementor-content .elementor-widget-text-editor { color: #454945; }
.jt-elementor-content .elementor-button { border: 1px solid var(--jt-navy); border-radius: 0; color: #fff; background: var(--jt-navy); font-family: var(--jt-sans); font-weight: 700; transition: transform .22s ease, box-shadow .22s ease, background .22s ease; }
.jt-elementor-content .elementor-button:hover { color: #fff; background: var(--jt-navy-deep); transform: translateY(-3px); box-shadow: 0 13px 28px rgba(16, 40, 58, .2); }
.jt-elementor-content input:not([type="submit"]), .jt-elementor-content textarea, .jt-elementor-content select { border: 1px solid var(--jt-line); border-radius: 0; background: var(--jt-paper); }

.jt-archive { max-width: var(--jt-container); }
.jt-archive__header { margin-bottom: 54px; }
.jt-archive__header h1 { margin: 0; font-size: clamp(2.5rem, 5vw, 4.5rem); }
.jt-archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.jt-loop-card { display: flex; flex-direction: column; min-height: 320px; padding: 30px; border: 1px solid var(--jt-line); background: #fff; }
.jt-loop-card h2 { margin: 36px 0 16px; font-size: 1.55rem; }
.jt-loop-card h2 a { color: var(--jt-navy); text-decoration: none; }
.jt-loop-card p { color: var(--jt-muted); font-size: .92rem; }
.jt-loop-card .jt-loop-card__more { margin-top: auto; }
.jt-loop-card time { color: var(--jt-brass); font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.navigation.pagination { margin-top: 44px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border: 1px solid var(--jt-line); text-decoration: none; }
.page-numbers.current { color: #fff; background: var(--jt-navy); border-color: var(--jt-navy); }

/* Footer */
.site-footer { color: rgba(255,255,255,.76); background: #071522; }
.site-footer__grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 60px; padding: 72px 0 54px; }
.site-footer h2, .site-footer h3 { margin-top: 0; color: #fff; font-size: 1.2rem; }
.site-footer a { color: rgba(255,255,255,.78); text-decoration: none; }
.site-footer a:hover { color: var(--jt-brass-light); }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer .primary-menu { display: block; }
.site-footer .primary-menu a { min-height: 0; padding: 0; color: rgba(255,255,255,.78); font-size: inherit; font-weight: 400; }
.site-footer__brand img { width: 230px; }
.site-footer__brand p { max-width: 430px; }
.site-footer__languages { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: start; padding: 30px 0; border-top: 1px solid rgba(255,255,255,.12); }
.site-footer__languages h3 { margin: 4px 0 0; color: #fff; font-size: 1.15rem; }
.site-footer__languages ul { display: flex; flex-wrap: wrap; gap: 8px; }
.site-footer__languages li { margin: 0; }
.site-footer__languages a { display: inline-flex; align-items: center; min-height: 38px; padding: 5px 12px; border: 1px solid rgba(255,255,255,.18); font-size: .82rem; transition: color .2s ease, border-color .2s ease, background .2s ease; }
.site-footer__languages a:hover { color: #fff; border-color: var(--jt-brass-light); background: rgba(255,255,255,.055); }
.site-footer__bottom { padding: 22px 0; border-top: 1px solid rgba(255,255,255,.12); font-size: .82rem; }

@media (max-width: 1020px) {
  .site-header__inner { grid-template-columns: minmax(180px, 270px) 1fr auto; gap: 16px; }
  .header-contact { display: none; }
  .primary-menu a { padding-inline: 10px; font-size: .85rem; }
  .jt-hero__grid { grid-template-columns: minmax(270px, .8fr) minmax(0, 1.2fr); gap: 40px; }
  .jt-hero__aside { margin-top: 32px; }
  .jt-services, .jt-posts, .jt-archive-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 780px) {
  body { font-size: 16px; }
  .jt-container { width: min(calc(100% - 28px), var(--jt-container)); }
  .site-header__inner { min-height: 88px; grid-template-columns: 1fr auto; }
  .site-branding img { width: 72px; height: 72px; }
  .menu-toggle { display: block; }
  .main-navigation { grid-column: 1 / -1; display: none; padding-bottom: 16px; }
  .main-navigation.is-open { display: block; }
  .primary-menu { display: block; border-top: 1px solid var(--jt-line); }
  .primary-menu a { min-height: 48px; padding: 8px 4px; }
  .primary-menu .sub-menu { position: static; min-width: 0; padding: 0 0 0 16px; visibility: visible; opacity: 1; transform: none; box-shadow: none; border: 0; background: transparent; }
  .jt-hero { padding: 48px 0 56px; }
  .jt-hero__grid { grid-template-columns: 1fr; gap: 34px; }
  .jt-hero__media { width: min(100%, 440px); justify-self: center; }
  .jt-hero__aside { grid-template-columns: 1fr; }
  .jt-hero__aside > div { padding: 18px 18px 2px; }
  .jt-proof__grid, .jt-services, .jt-posts, .jt-archive-grid { grid-template-columns: 1fr; }
  .jt-proof__item { min-height: 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.16); }
  .jt-section__head, .jt-profile { grid-template-columns: 1fr; gap: 32px; }
  .jt-profile__seal { max-width: 520px; padding: 28px; }
  .jt-featured { grid-template-columns: 1fr auto; }
  .jt-featured__label { grid-column: 1 / -1; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 34px; }
  .site-footer__languages { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 480px) {
  .jt-actions, .jt-button { width: 100%; }
  .jt-service { min-height: 245px; padding: 28px; }
  .jt-featured { padding: 26px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
