/*!
 * André Marconato Advogados — Design System (main.css)
 * Dark luxury jurídico · navy + ouro · WCAG 2.2 AA.
 *
 * Projeto Gerado pelo Prompt Mestre do Desenvolvedor e Vibe Coder Dante Testa — www.dantetesta.com.br
 * @author Dante Testa (https://www.dantetesta.com.br)
 *
 * Os tokens (:root) e o ATF (header/hero/botões) estão no critical CSS (header.php).
 */

/* =======================================================================
 * 1. Base / utilitários
 * ==================================================================== */
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: var(--am-gold); color: #0a0f18; }
:focus-visible { outline: 3px solid var(--am-gold-2); outline-offset: 3px; border-radius: 4px; }

.screen-reader-text {
	border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; padding: 0; overflow: hidden; position: absolute; word-wrap: normal !important;
}

/* Animação de entrada (gated por .am-js → sem JS, conteúdo sempre visível) */
.am-js .am-reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; transition-delay: var(--d, 0ms); will-change: opacity, transform; }
.am-js .am-reveal.is-in { opacity: 1; transform: none; }

/* =======================================================================
 * 2. Estrutura de seção
 * ==================================================================== */
.am-section { position: relative; padding: clamp(64px, 9vw, 120px) 0; }
.am-section__head { max-width: 720px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.am-section-eyebrow {
	display: inline-flex; align-items: center; gap: 10px;
	font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase;
	color: var(--am-gold-2); font-weight: 600; margin-bottom: 16px;
}
.am-section-eyebrow::before, .am-section__head .am-section-eyebrow::after {
	content: ""; width: 28px; height: 1px; background: var(--am-gold); opacity: .7;
}
.am-section__title { font-size: clamp(1.9rem, 3.6vw, 2.9rem); letter-spacing: -.01em; }
.am-section__lead { color: var(--am-muted); font-size: 1.06rem; margin-top: 18px; }

.am-prose p { color: var(--am-muted); margin: 0 0 16px; }
.am-prose p:last-child { margin-bottom: 0; }

/* =======================================================================
 * 3. Hero (complemento ao crítico)
 * ==================================================================== */
.am-hero__trust { list-style: none; display: flex; flex-wrap: wrap; gap: 22px; margin: 30px 0 0; padding: 0; }
.am-hero__trust li { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; color: var(--am-muted); }
.am-hero__trust .am-ico { color: var(--am-gold-2); }

/* =======================================================================
 * 4. Sobre
 * ==================================================================== */
.am-sobre__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.am-sobre__media { position: relative; }
.am-sobre__media img { width: 100%; border-radius: 18px; position: relative; z-index: 2; box-shadow: 0 30px 70px rgba(0,0,0,.5); }
.am-sobre__frame { position: absolute; inset: 22px -22px -22px 22px; border: 1px solid var(--am-gold); border-radius: 18px; z-index: 1; opacity: .55; }
.am-sobre__creds { display: grid; gap: 14px; margin: 30px 0 0; }
.am-sobre__creds > div { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: rgba(255,255,255,.025); border: 1px solid var(--am-line); border-radius: 12px; }
.am-sobre__creds dt { margin: 0; color: var(--am-gold-2); display: grid; place-items: center; width: 40px; height: 40px; background: rgba(198,160,82,.1); border-radius: 10px; flex: none; }
.am-sobre__creds dd { margin: 0; display: flex; flex-direction: column; }
.am-sobre__creds dd strong { font-size: 15px; }
.am-sobre__creds dd span { font-size: 12.5px; color: var(--am-muted); }

/* =======================================================================
 * 5. Direito Penal
 * ==================================================================== */
.am-penal { overflow: hidden; }
.am-penal__bg { position: absolute; inset: 0; z-index: -1; background-size: cover; background-position: center; opacity: .14; }
.am-penal::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--am-navy-800), rgba(11,18,32,.85)); }
.am-penal__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.am-penal__card {
	display: flex; align-items: center; gap: 14px; padding: 18px 20px;
	background: rgba(255,255,255,.03); border: 1px solid var(--am-line); border-radius: 14px;
	transition: transform .25s, border-color .25s, background .25s;
}
.am-penal__card:hover { transform: translateY(-4px); border-color: var(--am-gold); background: rgba(198,160,82,.06); }
.am-penal__ico { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 11px; color: var(--am-gold-2); background: rgba(198,160,82,.1); border: 1px solid var(--am-line); }
.am-penal__label { font-size: 15.5px; font-weight: 500; line-height: 1.35; }

/* =======================================================================
 * 6. Armas (destaque)
 * ==================================================================== */
.am-armas { background: linear-gradient(180deg, var(--am-navy-900), var(--am-navy-800)); }
.am-armas__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 70px); align-items: center; }
.am-armas__tags { list-style: none; margin: 24px 0 30px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; }
.am-armas__tags li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--am-ink); }
.am-armas__tags .am-ico { color: var(--am-gold-2); flex: none; }
.am-armas__media { position: relative; }
.am-armas__media img { width: 100%; border-radius: 18px; border: 1px solid var(--am-line); box-shadow: 0 30px 70px rgba(0,0,0,.55); }
.am-armas__seal { position: absolute; right: -16px; top: 26px; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(135deg, var(--am-gold), var(--am-gold-deep)); color: #0a0f18; box-shadow: 0 16px 36px rgba(198,160,82,.4); }

/* =======================================================================
 * 7. Formação
 * ==================================================================== */
.am-formacao__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.am-formacao__media img { width: 100%; border-radius: 18px; border: 1px solid var(--am-line); box-shadow: 0 30px 70px rgba(0,0,0,.5); }
.am-formacao__list { list-style: none; margin: 26px 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.am-formacao__list li { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: rgba(255,255,255,.025); border: 1px solid var(--am-line); border-radius: 12px; font-size: 15px; font-weight: 500; }
.am-formacao__ico { color: var(--am-gold-2); flex: none; }
.am-formacao__note { color: var(--am-muted); font-size: .98rem; font-style: italic; padding: 16px 18px; background: rgba(198,160,82,.06); border: 1px solid var(--am-line); border-radius: 12px; }

/* =======================================================================
 * 8. Áreas
 * ==================================================================== */
.am-areas__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.am-areas__card { padding: 26px 24px; background: rgba(255,255,255,.03); border: 1px solid var(--am-line); border-radius: 16px; transition: transform .25s, border-color .25s, background .25s; }
.am-areas__card:hover { transform: translateY(-5px); border-color: var(--am-gold); background: rgba(198,160,82,.06); }
.am-areas__ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 13px; color: var(--am-gold-2); background: rgba(198,160,82,.1); border: 1px solid var(--am-line); margin-bottom: 16px; }
.am-areas__title { font-size: 1.14rem; font-weight: 600; line-height: 1.25; }
.am-areas__desc { color: var(--am-muted); font-size: 13.8px; line-height: 1.55; margin: 9px 0 0; }

/* =======================================================================
 * 9. Valores + CTA band
 * ==================================================================== */
.am-valores__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.am-valores__card { padding: 34px; background: rgba(255,255,255,.03); border: 1px solid var(--am-line); border-radius: 18px; }
.am-valores__card h3 { font-size: 1.5rem; margin: 16px 0 12px; }
.am-valores__card p { color: var(--am-muted); margin: 0; }
.am-valores__ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; color: var(--am-gold-2); background: rgba(198,160,82,.1); border: 1px solid var(--am-line); }

.am-cta { position: relative; margin-top: clamp(56px, 8vw, 90px); padding: clamp(56px, 8vw, 96px) 0; background-size: cover; background-position: center; text-align: center; }
.am-cta__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,12,21,.86), rgba(7,12,21,.78)); }
.am-cta__inner { position: relative; max-width: 720px; }
.am-cta__title { font-size: clamp(2rem, 4vw, 3.1rem); }
.am-cta__sub { color: var(--am-muted); font-size: 1.08rem; margin: 18px auto 30px; }
.am-cta__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.am-btn--ghost-light { border-color: rgba(255,255,255,.3); color: #fff; }
.am-btn--ghost-light:hover { border-color: var(--am-gold-2); color: var(--am-gold-2); }

/* =======================================================================
 * 10. FAQ (acordeão)
 * ==================================================================== */
.am-faq { overflow: hidden; }
.am-faq__bg { position: absolute; inset: 0; z-index: -1; background-size: cover; background-position: center; opacity: .1; }
.am-faq::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--am-navy-800), var(--am-navy-900)); }
.am-faq__wrap { max-width: 860px; }
.am-accordion { display: flex; flex-direction: column; gap: 12px; }
.am-acc__item { background: rgba(255,255,255,.03); border: 1px solid var(--am-line); border-radius: 14px; overflow: hidden; transition: border-color .25s; }
.am-acc__item:hover { border-color: rgba(198,160,82,.4); }
.am-acc__h { margin: 0; }
.am-acc__btn {
	width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px;
	padding: 22px 24px; background: none; border: 0; cursor: pointer; text-align: left;
	font-family: var(--am-serif); font-size: 1.22rem; font-weight: 600; color: var(--am-ink); line-height: 1.3;
}
.am-acc__btn .am-ico { flex: none; color: var(--am-gold-2); transition: transform .3s; }
.am-acc__btn[aria-expanded="true"] .am-ico { transform: rotate(180deg); }
.am-acc__panel { transition: height .3s ease; }
.am-acc__inner { padding: 0 24px 24px; color: var(--am-muted); }
.am-acc__inner p { margin: 0; }

/* =======================================================================
 * 11. Contato + formulário
 * ==================================================================== */
.am-contato { background: linear-gradient(180deg, var(--am-navy-900), var(--am-navy-800)); }
.am-contato__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(36px, 5vw, 70px); align-items: start; }
.am-contato__info { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 12px; }
.am-contato__info a, .am-contato__static { display: flex; align-items: center; gap: 16px; padding: 16px 18px; background: rgba(255,255,255,.03); border: 1px solid var(--am-line); border-radius: 13px; transition: border-color .2s, transform .2s; min-width: 0; }
.am-contato__info a > span:last-child, .am-contato__static > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.am-contato__info a:hover { border-color: var(--am-gold); transform: translateX(4px); }
.am-contato__ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 11px; color: var(--am-gold-2); background: rgba(198,160,82,.1); flex: none; }
.am-contato__ico .am-ico { display: block; } /* centra o glifo (sem vazar para o chip) */
.am-contato__info strong, .am-contato__static strong { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--am-muted); font-weight: 600; margin-bottom: 2px; }
.am-contato__map { margin-top: 16px; border-radius: 14px; overflow: hidden; border: 1px solid var(--am-line); }
.am-contato__map iframe { display: block; }

.am-form { background: rgba(255,255,255,.035); border: 1px solid var(--am-line); border-radius: 20px; padding: clamp(24px, 4vw, 40px); box-shadow: 0 30px 70px rgba(0,0,0,.4); }
.am-form__row { margin-bottom: 18px; }
.am-form__row--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.am-form__field { display: flex; flex-direction: column; gap: 8px; }
.am-form__field label { font-size: 13.5px; font-weight: 600; color: var(--am-ink); }
.am-form__field label span { color: var(--am-gold-2); }
.am-form input, .am-form select, .am-form textarea {
	width: 100%; box-sizing: border-box; padding: 13px 15px; font-size: 15px; font-family: var(--am-sans);
	color: var(--am-ink); background: rgba(7,12,21,.5); border: 1px solid var(--am-line); border-radius: 11px;
	transition: border-color .15s, box-shadow .15s;
}
.am-form textarea { resize: vertical; line-height: 1.5; }
.am-form select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23c6a052' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.am-form input:focus, .am-form select:focus, .am-form textarea:focus { outline: none; border-color: var(--am-gold); box-shadow: 0 0 0 4px rgba(198,160,82,.16); }
.am-form input::placeholder, .am-form textarea::placeholder { color: #6b7689; }
.am-form__consent { display: flex; align-items: flex-start; gap: 11px; margin: 4px 0 22px; font-size: 13.5px; color: var(--am-muted); cursor: pointer; }
.am-form__consent input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--am-gold); }
.am-form__submit { width: 100%; justify-content: center; }
.am-form__status { margin: 16px 0 0; font-size: 14px; min-height: 1px; }
.am-form__status.is-ok { color: #7fd1a3; }
.am-form__status.is-err { color: #f0a4a4; }
.am-form.is-loading .am-form__submit { opacity: .7; pointer-events: none; }
.am-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- Animação de envio: dobra (carta) → avião de papel → obrigado ---- */
.am-form-stage { position: relative; }
.am-form { transform-origin: center top; backface-visibility: hidden; }
.am-form--folding { animation: am-fold .85s cubic-bezier(.6,.04,.98,.34) forwards; pointer-events: none; }
@keyframes am-fold {
	0%   { transform: perspective(1400px) rotateX(0) scaleY(1); opacity: 1; }
	30%  { transform: perspective(1400px) rotateX(0) scaleY(.6); opacity: 1; }
	55%  { transform: perspective(1400px) rotateX(-22deg) scaleY(.32) translateY(8px); opacity: .96; }
	100% { transform: perspective(1400px) rotateX(-44deg) scaleY(.07) translateY(48px) scale(.54); opacity: 0; }
}
.am-form--unfold { animation: am-unfold .6s cubic-bezier(.16,1,.3,1) both; }
@keyframes am-unfold { 0% { transform: perspective(1400px) rotateX(-28deg) scaleY(.2); opacity: 0; } 100% { transform: none; opacity: 1; } }

.am-plane { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; color: var(--am-gold-2); opacity: 0; pointer-events: none; z-index: 4; filter: drop-shadow(0 10px 20px rgba(198,160,82,.45)); }
.am-plane.is-flying { animation: am-fly 1.05s cubic-bezier(.5,0,.75,0) forwards; }
@keyframes am-fly {
	0%   { opacity: 0; transform: translate(0,0) rotate(6deg) scale(.6); }
	12%  { opacity: 1; transform: translate(0,4px) rotate(6deg) scale(1); }
	24%  { transform: translate(-8px,10px) rotate(0deg) scale(1.04); }
	100% { opacity: 0; transform: translate(46vw,-80vh) rotate(28deg) scale(.16); }
}

.am-thanks { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 16px; padding: 36px; background: linear-gradient(180deg, rgba(20,37,64,.96), rgba(11,18,32,.98)); border: 1px solid var(--am-line); border-radius: 20px; opacity: 0; transform: translateY(16px) scale(.97); transition: opacity .5s ease, transform .5s ease; z-index: 5; box-shadow: 0 30px 70px rgba(0,0,0,.4); }
.am-thanks[hidden] { display: none; } /* respeita o atributo hidden (não bloquear o form) */
.am-thanks.is-in { opacity: 1; transform: none; }
.am-thanks__icon { width: 80px; height: 80px; display: grid; place-items: center; border-radius: 50%; background: rgba(52,211,153,.12); color: #34d399; border: 1px solid rgba(52,211,153,.45); }
.am-thanks.is-in .am-thanks__icon { animation: am-pop .5s .15s both; }
@keyframes am-pop { 0% { transform: scale(0); } 60% { transform: scale(1.16); } 100% { transform: scale(1); } }
.am-thanks.is-in .am-thanks__icon svg path { stroke-dasharray: 32; stroke-dashoffset: 32; animation: am-draw .5s .4s forwards; }
@keyframes am-draw { to { stroke-dashoffset: 0; } }
.am-thanks__title { font-family: var(--am-serif); font-size: 1.9rem; color: var(--am-ink); margin: 0; }
.am-thanks__text { color: var(--am-muted); max-width: 36ch; margin: 0; }

@media (prefers-reduced-motion: reduce) {
	.am-form--folding, .am-form--unfold, .am-plane.is-flying { animation: none; }
	.am-thanks { transition: opacity .2s; }
	.am-thanks.is-in .am-thanks__icon, .am-thanks.is-in .am-thanks__icon svg path { animation: none; stroke-dashoffset: 0; }
}

/* =======================================================================
 * 12. Footer
 * ==================================================================== */
.am-footer { background: var(--am-navy-900); border-top: 1px solid var(--am-line); padding: clamp(48px, 6vw, 72px) 0 26px; }
.am-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1.3fr; gap: 40px; }
.am-footer__brand img { height: 50px; width: auto; margin-bottom: 16px; }
.am-footer__desc { color: var(--am-muted); font-size: 14.5px; max-width: 34ch; }
.am-footer__social { display: flex; gap: 12px; margin-top: 18px; }
.am-footer__social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; color: var(--am-gold-2); background: rgba(255,255,255,.04); border: 1px solid var(--am-line); transition: transform .2s, border-color .2s; }
.am-footer__social a:hover { transform: translateY(-3px); border-color: var(--am-gold); }
.am-footer__title { font-family: var(--am-sans); font-size: 12.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--am-gold-2); margin: 0 0 18px; font-weight: 700; }
.am-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.am-footer__col a { color: var(--am-muted); font-size: 14.5px; transition: color .2s; }
.am-footer__col a:hover { color: var(--am-gold-2); }
.am-footer__contact a { display: inline-flex; align-items: center; gap: 10px; }
.am-footer__contact .am-ico { color: var(--am-gold-2); flex: none; }
.am-footer__legal-col p { color: var(--am-muted); font-size: 13.8px; line-height: 1.8; }
.am-footer__legal-col strong { color: var(--am-ink); }
.am-footer__bottom { margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--am-line); display: grid; gap: 18px; }
.am-footer__ethics { color: #7b8698; font-size: 12.5px; line-height: 1.7; max-width: 880px; margin: 0; }
.am-footer__sign { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; margin-top: 4px; padding-top: 18px; border-top: 1px solid rgba(198,160,82,.1); color: #7b8698; font-size: 13px; }
.am-footer__copy { letter-spacing: .005em; }
/* Assinatura "Feito com Vibe Coding por Dante Testa" */
.am-footer__credit { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--am-muted); white-space: nowrap; }
.am-footer__credit b { font-weight: 600; font-style: normal; color: var(--am-ink); }
.am-footer__credit strong { position: relative; font-weight: 700; color: var(--am-gold-2); }
.am-footer__credit strong::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1.5px; background: linear-gradient(90deg, var(--am-gold), var(--am-gold-2), transparent); transform: scaleX(0); transform-origin: left; transition: transform .4s cubic-bezier(.16,1,.3,1); }
.am-footer__credit:hover strong { color: #f0dca0; }
.am-footer__credit:hover strong::after { transform: scaleX(1); }
.am-footer__spark { display: inline-flex; color: var(--am-gold); animation: am-spark 2.6s ease-in-out infinite; }
.am-footer__credit:hover .am-footer__spark { color: var(--am-gold-2); }
@keyframes am-spark { 0%,100% { opacity: .55; transform: scale(.9) rotate(0deg); } 50% { opacity: 1; transform: scale(1.12) rotate(12deg); } }
@media (prefers-reduced-motion: reduce) { .am-footer__spark { animation: none; } }
@media (max-width: 560px) { .am-footer__sign { justify-content: flex-start; } }

/* =======================================================================
 * 13. WhatsApp flutuante
 * ==================================================================== */
.am-wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 130; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 12px 30px rgba(37,211,102,.45); transition: transform .2s; }
.am-wa-float:hover { transform: scale(1.07); }
.am-wa-float__pulse { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(37,211,102,.5); animation: am-pulse 2.4s infinite; }
@keyframes am-pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); } 70% { box-shadow: 0 0 0 18px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }

/* =======================================================================
 * 14. Drawer mobile
 * ==================================================================== */
.am-drawer { position: fixed; inset: 0; z-index: 200; background: rgba(7,12,21,.7); backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.am-drawer.is-open { opacity: 1; visibility: visible; }
.am-drawer__inner { position: absolute; right: 0; top: 0; height: 100%; width: min(82vw, 360px); background: var(--am-navy-900); border-left: 1px solid var(--am-line); padding: 30px 30px 30px; transform: translateX(100%); transition: transform .35s ease; overflow-y: auto; }
.am-drawer.is-open .am-drawer__inner { transform: none; }
.am-drawer__logo { display: block; margin: 6px 0 28px; max-width: 168px; }
.am-drawer__logo img { width: 100%; height: auto; filter: drop-shadow(0 6px 16px rgba(0,0,0,.5)); }
.am-drawer__close { position: absolute; top: 18px; right: 18px; z-index: 2; width: 48px; height: 48px; display: grid; place-items: center; background: rgba(255,255,255,.04); border: 1px solid var(--am-line); border-radius: 50%; color: var(--am-ink); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background .2s, border-color .2s, transform .2s; }
.am-drawer__close:hover, .am-drawer__close:active { background: rgba(198,160,82,.14); border-color: var(--am-gold); transform: rotate(90deg); }
.am-drawer__list, .am-drawer .am-nav__list { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.am-drawer__list a, .am-drawer .am-nav__link { display: block; padding: 14px 4px; font-size: 17px; border-bottom: 1px solid var(--am-line); color: var(--am-ink); }
.am-drawer__cta { width: 100%; justify-content: center; margin-top: 10px; }

/* =======================================================================
 * 15. Páginas internas / 404 / busca
 * ==================================================================== */
/* Páginas internas (Termos/Privacidade): cabeçalho compacto sempre (não há hero atrás) */
body.page .am-header { padding: 12px 0; background: rgba(8,13,22,.92); backdrop-filter: saturate(160%) blur(12px); box-shadow: 0 1px 0 var(--am-line); }
body.page .am-header .am-logo img { height: 56px; filter: none; }
.am-page { padding-top: 128px; }
.am-page__head { padding: clamp(8px,3vw,28px) 0 0; }
.am-page__title { font-size: clamp(2rem,4vw,3rem); }
.am-page__body { padding: clamp(28px,4vw,48px) 0 clamp(56px,8vw,96px); }
@media (max-width: 560px) { .am-page { padding-top: 104px; } }
.am-prose--page { max-width: 760px; }
.am-prose--page :is(h2,h3) { margin: 32px 0 14px; }
.am-prose--page p, .am-prose--page li { color: var(--am-muted); }
.am-prose--page a { color: var(--am-gold-2); text-decoration: underline; }
.am-404__inner { text-align: center; max-width: 560px; margin-inline: auto; }
.am-404__code { font-family: var(--am-serif); font-size: clamp(5rem,16vw,9rem); font-weight: 700; color: var(--am-gold); line-height: 1; display: block; }
.am-404 p { color: var(--am-muted); }
.am-404__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.am-search { display: flex; gap: 8px; }
.am-search__input { padding: 12px 14px; border-radius: 10px; border: 1px solid var(--am-line); background: rgba(7,12,21,.5); color: var(--am-ink); }
.am-search__btn { padding: 12px 20px; border-radius: 10px; border: 0; background: var(--am-gold); color: #0a0f18; font-weight: 600; cursor: pointer; }

/* =======================================================================
 * 16. Responsivo
 * ==================================================================== */
@media (max-width: 1024px) {
	.am-penal__grid { grid-template-columns: repeat(2, 1fr); }
	.am-areas__grid { grid-template-columns: repeat(2, 1fr); }
	.am-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 860px) {
	.am-sobre__grid, .am-armas__grid, .am-contato__grid, .am-valores__grid { grid-template-columns: 1fr; }
	.am-sobre__frame { display: none; }
	.am-armas__media { order: -1; max-width: 460px; margin-inline: auto; }
	.am-contato__form-wrap { order: -1; }
	/* Formação: foto compacta com o texto correndo ao lado (revista/float) */
	.am-formacao__grid { display: block; }
	.am-formacao__media { float: left; width: 38%; max-width: 150px; margin: 4px 18px 8px 0; }
	.am-formacao__media img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 16%; }
	.am-formacao__content .am-section-eyebrow { display: block; }
	.am-formacao__content .am-section-eyebrow::before { display: inline-block; vertical-align: middle; margin-right: 10px; }
	.am-formacao__content .am-section__title { font-size: 1.55rem; line-height: 1.18; }
	.am-formacao__list, .am-formacao__note { clear: both; }
}
@media (max-width: 560px) {
	.am-penal__grid, .am-areas__grid, .am-formacao__list, .am-armas__tags, .am-form__row--2 { grid-template-columns: 1fr; }
	.am-section__head { text-align: left; }
	.am-acc__btn { font-size: 1.08rem; padding: 18px 18px; }
	.am-wa-float { width: 54px; height: 54px; right: 16px; bottom: 16px; }
}

/* =======================================================================
 * 17. Efeitos nobres (premium) — shimmer, sublinhado, glow, tilt 3D
 *     Tudo em transform/opacity (GPU) e desligado em reduced-motion.
 * ==================================================================== */

/* Shimmer dourado no botão principal */
.am-btn { position: relative; overflow: hidden; isolation: isolate; }
.am-btn--gold::after {
	content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 60%; z-index: 2; pointer-events: none;
	background: linear-gradient(115deg, transparent 0%, rgba(255,255,255,.5) 50%, transparent 100%);
	transform: translateX(-180%) skewX(-18deg); transition: transform .7s cubic-bezier(.22,1,.36,1);
}
.am-btn--gold:hover::after { transform: translateX(320%) skewX(-18deg); }

/* Sublinhado dourado animado no menu */
.am-nav__link::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
	background: linear-gradient(90deg, var(--am-gold), var(--am-gold-2));
	transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.am-nav__link:hover::after { transform: scaleX(1); }

/* Hover nobre nos cards (glow dourado em vez de só borda) */
.am-penal__card, .am-areas__card { transition: transform .35s cubic-bezier(.16,1,.3,1), border-color .3s, background .3s, box-shadow .3s; }
.am-penal__card:hover, .am-areas__card:hover { box-shadow: 0 20px 44px rgba(0,0,0,.4), 0 0 26px rgba(198,160,82,.14); }
.am-penal__card:hover .am-penal__ico, .am-areas__card:hover .am-areas__ico { background: rgba(198,160,82,.18); color: #f0dca0; transform: scale(1.06); }
.am-penal__ico, .am-areas__ico { transition: transform .3s, background .3s, color .3s; }
.am-valores__card { transition: transform .4s cubic-bezier(.16,1,.3,1), border-color .3s, box-shadow .3s; }
.am-valores__card:hover { border-color: rgba(198,160,82,.45); box-shadow: 0 26px 60px rgba(0,0,0,.4), 0 0 30px rgba(198,160,82,.1); }
.am-valores__card:hover .am-valores__ico { color: #f0dca0; }
.am-valores__ico { transition: color .3s; }

/* Base do tilt 3D (transform aplicado via JS) */
.am-hero__portrait, .am-sobre__media, .am-armas__media, .am-formacao__media, .am-valores__card { transform-style: preserve-3d; }

/* Brilho dourado pulsante atrás do selo de armas */
.am-armas__seal { transition: transform .3s; }
.am-armas__media:hover .am-armas__seal { transform: rotate(8deg) scale(1.08); }

/* Item de formação: realce ao passar o mouse */
.am-formacao__list li { transition: border-color .3s, background .3s, transform .3s; }
.am-formacao__list li:hover { border-color: rgba(198,160,82,.4); background: rgba(198,160,82,.06); transform: translateX(4px); }

@media (prefers-reduced-motion: reduce) {
	.am-btn--gold::after, .am-nav__link::after { transition: none; }
	.am-hero__particles { display: none; }
}

/* Atalho flutuante de administração (inferior esquerdo, só admin logado) */
.am-admin-float { position: fixed; left: 22px; bottom: 22px; z-index: 129; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: rgba(8,13,22,.9); color: var(--am-gold-2); border: 1px solid rgba(198,160,82,.4); box-shadow: 0 12px 28px rgba(0,0,0,.45); backdrop-filter: blur(8px); transition: transform .2s, background .2s, color .2s; }
.am-admin-float:hover { transform: translateY(-3px) scale(1.05); background: linear-gradient(120deg, var(--am-gold), var(--am-gold-2)); color: #0a0f18; }
.am-admin-float__tip { position: absolute; left: 64px; bottom: 50%; transform: translateY(50%) translateX(-6px); white-space: nowrap; background: rgba(8,13,22,.96); color: var(--am-ink); border: 1px solid var(--am-line); border-radius: 8px; padding: 7px 12px; font-size: 12.5px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.am-admin-float:hover .am-admin-float__tip { opacity: 1; transform: translateY(50%) translateX(0); }
@media (max-width: 560px) { .am-admin-float { width: 46px; height: 46px; left: 16px; bottom: 16px; } .am-admin-float__tip { display: none; } }

/* =======================================================================
 * 18. Camada award — cursor de assinatura, grão, marquee, hero kinético, envelope
 * ==================================================================== */

/* Cursor de assinatura (só em ponteiro fino; injetado por motion.js) */
.am-has-cursor, .am-has-cursor a, .am-has-cursor button, .am-has-cursor .am-acc__btn { cursor: none; }
.am-has-cursor input, .am-has-cursor textarea, .am-has-cursor select { cursor: auto; }
.am-cursor { position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none; border-radius: 50%; }
.am-cursor--dot { width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; background: var(--am-gold-2); }
.am-cursor--ring { width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 1px solid rgba(214,184,112,.7); transition: width .25s, height .25s, margin .25s, background .25s, border-color .25s; }
.am-cursor--ring.is-hot { width: 66px; height: 66px; margin: -33px 0 0 -33px; background: rgba(198,160,82,.1); border-color: var(--am-gold-2); }
.am-cursor--ring.is-down { width: 30px; height: 30px; margin: -15px 0 0 -15px; }
@media (hover: none), (prefers-reduced-motion: reduce) { .am-cursor { display: none; } .am-has-cursor, .am-has-cursor * { cursor: auto; } }

/* Grão de filme (atmosfera cinematográfica) */
.am-grain { position: fixed; inset: 0; z-index: 9990; pointer-events: none; opacity: .05; mix-blend-mode: soft-light;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	background-size: 160px 160px; }
@media (prefers-reduced-motion: reduce) { .am-grain { display: none; } }

/* Marquee editorial */
.am-marquee { overflow: hidden; border-block: 1px solid var(--am-line); background: var(--am-navy-900); padding: 24px 0; }
.am-marquee__track { display: inline-flex; align-items: center; width: max-content; will-change: transform; animation: am-marq 38s linear infinite; }
.am-marquee__track span { font-family: var(--am-serif); font-style: italic; font-size: clamp(1.5rem, 3.2vw, 2.6rem); color: var(--am-ink); white-space: nowrap; }
.am-marquee__track span::after { content: "§"; color: var(--am-gold); margin: 0 36px; font-style: normal; font-size: .7em; opacity: .85; }
@keyframes am-marq { to { transform: translateX(-50%); } }
.am-marquee:hover .am-marquee__track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .am-marquee__track { animation: none; } }

/* Hero kinético (máscaras de palavra para o split-text do GSAP) */
.am-hero h1 .am-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .04em; }
.am-hero h1 .am-word__i { display: inline-block; will-change: transform; }

/* Rótulo vertical + indicador de scroll no hero */
.am-hero__vlabel { position: absolute; left: 30px; bottom: 120px; z-index: 2; writing-mode: vertical-rl; text-orientation: mixed; font-size: 11.5px; letter-spacing: .32em; text-transform: uppercase; color: var(--am-muted); }
.am-hero__vlabel::after { content: ""; display: block; width: 1px; height: 46px; margin: 14px auto 0; background: linear-gradient(var(--am-gold), transparent); }
.am-hero__scroll { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .25em; text-transform: uppercase; color: var(--am-muted); }
.am-hero__scroll span { width: 26px; height: 40px; border: 1px solid var(--am-line); border-radius: 14px; position: relative; }
.am-hero__scroll span::before { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--am-gold-2); animation: am-scroll 1.8s ease-in-out infinite; }
@keyframes am-scroll { 0%,100% { transform: translateY(0); opacity: 1; } 60% { transform: translateY(12px); opacity: .2; } }
@media (max-width: 900px) { .am-hero__vlabel, .am-hero__scroll { display: none; } }
@media (prefers-reduced-motion: reduce) { .am-hero__scroll span::before { animation: none; } }

/* FX de envio (envelope → avião) */
.am-send-fx { position: absolute; inset: 0; z-index: 4; pointer-events: none; visibility: hidden; display: grid; place-items: center; }
.am-envelope { grid-area: 1 / 1; width: 132px; height: auto; filter: drop-shadow(0 20px 40px rgba(0,0,0,.5)); }
.am-airplane { grid-area: 1 / 1; width: clamp(84px, 8vw, 124px); height: auto; filter: drop-shadow(0 14px 28px rgba(198,160,82,.5)); }

/* Reveal mais dramático */
.am-js .am-reveal { transform: translateY(40px); }

/* Âncoras: compensa o cabeçalho fixo no scroll nativo (sem Lenis) */
.am-hero, .am-section, .am-marquee { scroll-margin-top: 86px; }

/* =======================================================================
 * 19. Hovers com mais caráter (itens + botões)
 * ==================================================================== */

/* Cards de contato: o chip do ícone acende em ouro e gira levemente */
.am-contato__info .am-contato__ico { transition: transform .4s cubic-bezier(.16,1,.3,1), background .35s, color .35s, box-shadow .35s; }
.am-contato__info a:hover .am-contato__ico { background: linear-gradient(125deg, var(--am-gold), var(--am-gold-2)); color: #0a0f18; transform: rotate(-8deg) scale(1.1); box-shadow: 0 10px 24px rgba(198,160,82,.4); }
.am-contato__info a:hover strong { color: var(--am-gold-2); }

/* Sweep de luz dourada cruzando os cards (penal/áreas) */
.am-penal__card, .am-areas__card { overflow: hidden; }
.am-penal__card::after, .am-areas__card::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 50%; pointer-events: none; z-index: 3;
	background: linear-gradient(115deg, transparent 0%, rgba(227,199,122,.16) 50%, transparent 100%); transform: translateX(-220%) skewX(-16deg); transition: transform .8s cubic-bezier(.22,1,.36,1); }
.am-penal__card:hover::after, .am-areas__card:hover::after { transform: translateX(360%) skewX(-16deg); }
.am-areas__card:hover .am-areas__title { color: var(--am-gold-2); }
.am-areas__card .am-areas__title { transition: color .3s; }

/* Botão dourado: glow + o ícone desliza/inclina */
.am-btn .am-ico { transition: transform .35s cubic-bezier(.16,1,.3,1); }
.am-btn--gold:hover { box-shadow: 0 16px 40px rgba(198,160,82,.45), inset 0 0 0 1px rgba(255,255,255,.35); }
.am-btn--gold:hover .am-ico { transform: translateX(3px) rotate(-8deg) scale(1.08); }
.am-btn--ghost:hover .am-ico { transform: translateX(4px); }

/* FAQ: fundo sutil ao abrir/hover */
.am-acc__btn:hover { background: rgba(198,160,82,.05); }
.am-acc__item:has(.am-acc__btn[aria-expanded="true"]) { border-color: rgba(198,160,82,.45); background: rgba(198,160,82,.04); }

/* Selo de armas pulsa de leve sempre */
@media (prefers-reduced-motion: no-preference) {
	.am-armas__seal { animation: am-seal-pulse 3.2s ease-in-out infinite; }
	@keyframes am-seal-pulse { 0%,100% { box-shadow: 0 16px 36px rgba(198,160,82,.4); } 50% { box-shadow: 0 16px 50px rgba(198,160,82,.7); } }
}

/* =======================================================================
 * 20. Mapa estilizado + "Como chegar" + ajustes do rodapé
 * ==================================================================== */
.am-contato__how { margin-top: 28px; }

.am-mapa { margin-top: clamp(48px, 7vw, 80px); border-radius: 20px; overflow: hidden; border: 1px solid var(--am-line); box-shadow: 0 30px 70px rgba(0,0,0,.45); background: var(--am-navy-900); scroll-margin-top: 96px; }
.am-mapa__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 22px; border-bottom: 1px solid var(--am-line); background: linear-gradient(180deg, rgba(198,160,82,.07), transparent); }
.am-mapa__loc { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--am-ink); font-size: 15px; }
.am-mapa__loc .am-ico { color: var(--am-gold-2); flex: none; }
.am-mapa__open { display: inline-flex; align-items: center; gap: 7px; color: var(--am-gold-2); font-size: 14px; font-weight: 600; }
.am-mapa__open:hover { color: var(--am-gold); }
.am-mapa__open .am-ico { transition: transform .25s; }
.am-mapa__open:hover .am-ico { transform: translateX(3px); }
.am-mapa__frame { height: clamp(300px, 42vw, 460px); }
.am-mapa__frame iframe { display: block; width: 100%; height: 100%; filter: grayscale(.28) contrast(1.04) brightness(.94); transition: filter .4s; }
.am-mapa:hover .am-mapa__frame iframe { filter: none; }

/* Rodapé: logo 2x e correção do tamanho do "Endereço/São Paulo, SP" */
.am-footer__brand img { height: 96px; }
.am-footer__contact li > span { display: inline-flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--am-muted); }
.am-footer__contact li > span .am-ico { color: var(--am-gold-2); flex: none; }
@media (max-width: 600px) { .am-footer__brand img { height: 76px; } }

/* Links legais no rodapé (LGPD) */
.am-footer__legal { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin: 0 0 16px; }
.am-footer__legal a, .am-footer__legal .am-consent-link { color: #8b95a6; font-size: 13px; transition: color .2s; }
.am-footer__legal a:hover, .am-footer__legal .am-consent-link:hover { color: var(--am-gold-2); }

/* Rodapé no mobile: uma coluna e textos longos quebrando (sem corte/overflow) */
.am-footer__desc, .am-footer__legal-col p { overflow-wrap: anywhere; }
.am-footer__contact a, .am-footer__contact li > span { min-width: 0; overflow-wrap: anywhere; align-items: flex-start; }
@media (max-width: 640px) {
	.am-footer__grid { grid-template-columns: 1fr; gap: 30px; }
}

/* =======================================================================
 * 21. Ajustes finos: contato 2-col, mapa dark, rotas, logo do rodapé
 * ==================================================================== */

/* WhatsApp + Telefone lado a lado; e-mail e endereço em largura cheia */
.am-contato__info { grid-template-columns: 1fr 1fr; }
.am-contato__info > li:nth-child(n+3) { grid-column: 1 / -1; }
@media (max-width: 560px) { .am-contato__info { grid-template-columns: 1fr; } .am-contato__info > li { grid-column: auto; } }

/* Mapa em tom escuro (combina com o tema); cores reais ao passar o mouse */
.am-mapa__frame iframe { filter: invert(0.9) hue-rotate(180deg) saturate(0.5) brightness(0.92) contrast(0.95); }
.am-mapa:hover .am-mapa__frame iframe { filter: none; }

/* Botões de rota (Waze + Google) */
.am-mapa__btns { display: flex; gap: 10px; flex-wrap: wrap; }
.am-mapa__route { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--am-line); color: var(--am-gold-2); transition: border-color .2s, background .2s, transform .15s; }
.am-mapa__route:hover { border-color: var(--am-gold); background: rgba(198,160,82,.1); transform: translateY(-1px); }
.am-mapa__route .am-ico { color: var(--am-gold-2); }
.am-mapa__route--waze:hover { border-color: #33ccff; background: rgba(51,204,255,.12); }
.am-mapa__route--waze:hover .am-ico { color: #33ccff; }
@media (max-width: 560px) {
	.am-mapa__bar { flex-direction: column; align-items: stretch; gap: 12px; }
	.am-mapa__btns { width: 100%; flex-wrap: nowrap; }
	.am-mapa__route { flex: 1 1 0; min-width: 0; justify-content: center; }
}

/* Logo do rodapé maior */
.am-footer__brand img { height: 150px; }
@media (max-width: 600px) { .am-footer__brand img { height: 112px; } }

/* OAB + Registro lado a lado no "Sobre" (3º item em largura cheia) */
.am-sobre__creds { grid-template-columns: 1fr 1fr; }
.am-sobre__creds > div:nth-child(3) { grid-column: 1 / -1; }
@media (max-width: 560px) { .am-sobre__creds { grid-template-columns: 1fr; } .am-sobre__creds > div { grid-column: auto; } }

/* =======================================================================
 * 22. Valores ilustrado + CTA com parallax/partículas
 * ==================================================================== */
.am-valores { overflow: hidden; }
.am-valores__bg { position: absolute; inset: 0; z-index: -1; background-size: cover; background-position: center; opacity: .07; }
.am-valores__card { position: relative; overflow: hidden; padding: 38px 34px; transition: transform .35s cubic-bezier(.16,1,.3,1), border-color .3s, box-shadow .3s; }
.am-valores__card:hover { transform: translateY(-5px); border-color: rgba(198,160,82,.45); box-shadow: 0 26px 60px rgba(0,0,0,.4), 0 0 36px rgba(198,160,82,.1); }
.am-valores__num { position: absolute; top: 14px; right: 22px; font-family: var(--am-serif); font-size: 3.4rem; font-weight: 700; line-height: 1; color: rgba(198,160,82,.12); pointer-events: none; }
.am-valores__ico { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; color: var(--am-gold-2); background: linear-gradient(135deg, rgba(198,160,82,.22), rgba(198,160,82,.05)); border: 1px solid rgba(198,160,82,.4); box-shadow: 0 8px 24px rgba(198,160,82,.15), inset 0 0 18px rgba(198,160,82,.08); transition: background .3s, color .3s, transform .3s; }
.am-valores__card:hover .am-valores__ico { background: linear-gradient(135deg, var(--am-gold), var(--am-gold-2)); color: #0a0f18; transform: scale(1.06) rotate(-4deg); }
.am-valores__card h3 { font-size: 1.42rem; }

/* CTA: fundo (parallax) + partículas */
.am-cta { position: relative; overflow: hidden; }
.am-cta__bg { position: absolute; inset: 0; z-index: -3; background-size: cover; background-position: center; transform: scale(1.18); will-change: transform; }
.am-cta__scrim { z-index: -2; }
.am-cta__particles { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.am-cta__inner { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .am-cta__particles { display: none; } }
