/*
Theme Name: Amstalden Joly (Blocos)
Description: Versão editável do tema Amstalden Joly — a página inicial fica em blocos, editável no painel. Pode ficar instalado ao lado do tema original.
Version: 1.1.10
Author: Wilfredo Ronsini
Author URI: https://wilfredoronsini.de
Requires at least: 6.5
Requires PHP: 7.4
License: Private
Text Domain: amstalden-joly-blocos
*/

html { scroll-behavior: smooth; }
.fade-up { opacity: 0; transform: translateY(24px); transition: all .7s ease; }
.fade-up.show { opacity: 1; transform: translateY(0); }

/* Offset fixed header when WordPress admin bar is visible */
.admin-bar header { top: 32px; }
@media (max-width: 782px) { .admin-bar header { top: 46px; } }

/* Post content typography (single.php) */
.post-content p  { margin-bottom: 1.25rem; line-height: 1.75; }
.post-content h2 { font-family: Georgia, Cambria, serif; font-size: 1.5rem; color: #1f3a4d; margin-top: 2rem; margin-bottom: 1rem; }
.post-content h3 { font-family: Georgia, Cambria, serif; font-size: 1.25rem; color: #1f3a4d; margin-top: 1.5rem; margin-bottom: 0.75rem; }
.post-content ul, .post-content ol { margin-bottom: 1.25rem; padding-left: 1.5rem; }
.post-content li { margin-bottom: 0.25rem; }
.post-content a  { color: #b08d57; }
.post-content a:hover { color: #c8a673; }
.post-content blockquote { border-left: 4px solid #b08d57; padding-left: 1rem; margin: 1.5rem 0; font-style: italic; color: #1f3a4d; }

/* ------------------------------------------------------------------
   Página inicial em blocos (v1.1.0)
   As classes "aj-*" ficam em "Classes CSS adicionais" de cada bloco.
   ------------------------------------------------------------------ */

/* Brilho dourado no fundo do topo */
.aj-hero { overflow: hidden; }
@media (max-width: 767px) { .aj-hero > .wp-block-group { grid-template-columns: minmax(0, 1fr); } }
.aj-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .1;
  background: radial-gradient(circle at top right, #b08d57 0, transparent 55%);
}

/* Imagens */
figure.wp-block-image.aj-img { margin: 0; }
figure.aj-photo-hero { position: relative; width: 15rem; max-width: 100%; flex: none; }
figure.aj-photo-hero::before {
  content: ""; position: absolute; inset: -.75rem; border-radius: 1.75rem;
  border: 1px solid rgba(176, 141, 87, .4); pointer-events: none;
}
figure.aj-photo-hero img {
  position: relative; display: block; width: 100%; height: auto; border-radius: 1.5rem; object-fit: cover;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .25);
}
figure.aj-photo-sobre img {
  width: 16rem; border-radius: 1rem; object-fit: cover;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, .1), 0 8px 10px -6px rgba(0, 0, 0, .1);
}
figure.aj-logo img { display: block; height: 6rem; width: auto; margin: 0 auto 2rem; }
@media (min-width: 640px) {
  figure.aj-photo-hero { width: 18rem; }
}
@media (min-width: 768px) {
  figure.aj-photo-hero { width: 20rem; }
  figure.aj-logo img { height: 7rem; }
}

/* Botões */
.wp-block-buttons.aj-buttons { display: flex; flex-wrap: wrap; gap: 1rem; }
.wp-block-button.aj-btn-gold .wp-block-button__link,
.wp-block-button.aj-btn-outline .wp-block-button__link {
  display: inline-block; font-size: 1rem; line-height: 1.5rem; padding: .75rem 1.75rem;
  border-radius: 9999px; text-decoration: none; transition: all .15s ease;
}
.wp-block-button.aj-btn-gold .wp-block-button__link { background: #b08d57; color: #16293a; font-weight: 600; border: 1px solid #b08d57; }
.wp-block-button.aj-btn-gold .wp-block-button__link:hover { background: #c8a673; border-color: #c8a673; }
.wp-block-button.aj-btn-outline .wp-block-button__link { background: transparent; color: #f7f4ef; border: 1px solid rgba(247, 244, 239, .4); }
.wp-block-button.aj-btn-outline .wp-block-button__link:hover { border-color: #b08d57; color: #b08d57; }

/* Links */
.aj-link-gold a { color: #b08d57; text-decoration: none; transition: color .15s; }
.aj-link-gold a:hover { color: #c8a673; }
.aj-contact-list a { color: inherit; text-decoration: none; transition: color .15s; }
.aj-contact-list a:hover { color: #b08d57; }

/* Campo anti-spam do formulário (invisível) */
.aj-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* No editor, mostrar tudo (sem animação de entrada) */
.editor-styles-wrapper .fade-up { opacity: 1 !important; transform: none !important; }
.editor-styles-wrapper { background: #f7f4ef; color: #16293a; }

/* ------------------------------------------------------------------
   Seção "Sobre a advogada" (v1.1.5)
   O estilo vem da seção, não de cada parágrafo: parágrafos novos
   criados com Enter já saem formatados.
   ------------------------------------------------------------------ */
.aj-sobre { max-width: 72rem; margin: 0 auto; padding: 6rem 1.5rem; }
.aj-sobre .wp-block-columns { gap: 4rem; align-items: center; margin: 0; }

/* Foto com moldura dourada deslocada */
.aj-sobre-foto figure.wp-block-image { position: relative; width: 100%; max-width: 18rem; margin: 0 auto; }
.aj-sobre-foto figure.wp-block-image::before {
  content: ""; position: absolute; inset: 0; transform: translate(.75rem, .75rem);
  border: 1px solid rgba(176, 141, 87, .4); border-radius: 1rem; pointer-events: none;
}
.aj-sobre-foto figure.wp-block-image img {
  position: relative; display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 1rem; box-shadow: 0 20px 25px -5px rgba(0, 0, 0, .12), 0 8px 10px -6px rgba(0, 0, 0, .1);
}
.aj-sobre-foto figure.wp-block-image figcaption { display: none; }

/* Texto */
.aj-sobre-texto { min-width: 0; }
.aj-sobre-texto .aj-eyebrow {
  color: #b08d57; font-size: .75rem; letter-spacing: .25em; text-transform: uppercase; margin: 0 0 .75rem;
}
.aj-sobre-texto h2 {
  font-family: Georgia, Cambria, serif; font-weight: 400; font-size: clamp(1.875rem, 3vw, 2.25rem);
  line-height: 1.2; color: #1f3a4d; margin: 0 0 1.5rem;
}
.aj-sobre-texto h2::after {
  content: ""; display: block; width: 3rem; height: 2px; background: #b08d57; margin-top: 1.25rem;
}
.aj-sobre-texto h3 { font-family: Georgia, Cambria, serif; font-size: 1.25rem; color: #1f3a4d; margin: 1.5rem 0 .75rem; }
.aj-sobre-texto > p,
.aj-sobre-texto > ul,
.aj-sobre-texto > ol { max-width: 42rem; }
.aj-sobre-texto p { color: rgba(22, 41, 58, .8); line-height: 1.75; margin: 0 0 1rem; }
.aj-sobre-texto strong { color: #1f3a4d; }
.aj-sobre-texto a { color: #b08d57; }
.aj-sobre-texto ul, .aj-sobre-texto ol { margin: 0 0 1rem; padding-left: 1.25rem; color: rgba(22, 41, 58, .8); line-height: 1.75; }
.aj-sobre-texto ul { list-style: disc; }
.aj-sobre-texto ol { list-style: decimal; }

/* Cartões de destaque */
.aj-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: .75rem;
  max-width: 42rem; margin-top: 2rem;
}
.aj-stats > .wp-block-group {
  display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); column-gap: .875rem; align-content: start;
  background: #fff; border: 1px solid rgba(176, 141, 87, .25); border-radius: .875rem;
  padding: 1.125rem 1.25rem; box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}
.aj-stats > .wp-block-group::before {
  content: ""; grid-row: 1 / span 4; width: 2.25rem; height: 2.25rem; border-radius: 9999px;
  background: rgba(176, 141, 87, .15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b08d57' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 1rem no-repeat;
}
.aj-stats > .wp-block-group.aj-stat-oab::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b08d57' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m16 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z'/%3E%3Cpath d='m2 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z'/%3E%3Cpath d='M7 21h10'/%3E%3Cpath d='M12 3v18'/%3E%3Cpath d='M3 7h2c2 0 5-1 7-2 2 1 5 2 7 2h2'/%3E%3C/svg%3E");
}
/* 1º parágrafo do cartão = título; os seguintes = descrição */
.aj-stats > .wp-block-group p {
  grid-column: 2; margin: .25rem 0 0; font-size: .875rem; line-height: 1.5; color: rgba(22, 41, 58, .7);
}
.aj-stats > .wp-block-group p:first-of-type {
  margin-top: 0; font-family: Georgia, Cambria, serif; font-size: 1.0625rem; line-height: 1.3; color: #1f3a4d;
}
.aj-stats > .wp-block-group.aj-stat-oab { grid-column: 1 / -1; align-items: center; padding: .75rem 1.25rem; }
.aj-stats > .wp-block-group.aj-stat-oab::before { grid-row: auto; }
.aj-stats > .wp-block-group.aj-stat-oab p:first-of-type { align-self: center; }

@media (max-width: 781px) {
  .aj-sobre { padding: 4.5rem 1.5rem; }
  .aj-sobre .wp-block-columns { gap: 2.5rem; }
  .aj-sobre-foto figure.wp-block-image { max-width: 15rem; }
}
