/* ==========================================================================
   Funerária em São Paulo — identidade urbana paulistana
   Paleta: vermelho #B32632 · preto #202124 · grafite #383A3D · concreto #D7D5D2
   Sem fontes externas: pilha de sistema (rápida, sem CLS de webfont).
   ========================================================================== */

:root {
	--red: #B32632;
	--red-dark: #7E202A;
	--black: #202124;
	--graphite: #383A3D;
	--concrete: #D7D5D2;
	--mist: #F0EFED;
	--white: #FFFFFF;
	--warm: #FAF9F7;
	--text-2: #626267;

	--font-display: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "Times New Roman", serif;
	--font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-read: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;

	--wrap: 1180px;
	--gutter: clamp(1.25rem, 4vw, 2.5rem);
	--ease: cubic-bezier(.2, .7, .2, 1);
	--header-h: 68px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
	margin: 0;
	background: var(--warm);
	color: var(--black);
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.6;
	overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--red-dark); text-underline-offset: .18em; }
a:hover { color: var(--red); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -.005em; margin: 0 0 .6em; font-weight: 400; }
h3 { font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.contact-band :focus-visible, .cta-band :focus-visible, .site-footer :focus-visible, .guide-feature:focus-visible { outline-color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--white); color: var(--black); padding: .75rem 1rem; font-weight: 600; }
.skip:focus { top: 1rem; }

/* ---------- Botões ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	min-height: 48px; padding: .8rem 1.5rem;
	background: var(--red); color: var(--white);
	border: 2px solid var(--red); border-radius: 2px;
	font: 600 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
	transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); color: var(--white); transform: translateY(-1px); }
.btn:active { transform: none; }
.btn--sm { min-height: 40px; padding: .5rem 1rem; font-size: .9375rem; }
.btn--outline { background: transparent; border-color: var(--graphite); color: var(--black); }
.btn--outline:hover { background: var(--black); border-color: var(--black); color: var(--white); }
.btn--light { background: var(--white); border-color: var(--white); color: var(--black); }
.btn--light:hover { background: var(--warm); border-color: var(--warm); color: var(--red-dark); }
.btn--ghost-light { background: transparent; border-color: rgba(255,255,255,.55); color: var(--white); }
.btn--ghost-light:hover { background: var(--white); border-color: var(--white); color: var(--black); }

.link-arrow { display: inline-flex; align-items: center; gap: .6rem; font-weight: 600; text-decoration: none; color: inherit; border-bottom: 2px solid var(--red); padding-bottom: 2px; transition: gap .25s var(--ease), color .25s; }
.link-arrow::after { content: ""; width: .7rem; height: .7rem; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg) scale(.9); }
.link-arrow:hover { gap: 1rem; color: var(--red-dark); }

/* ---------- Cabeçalho ---------- */
.header-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 24px; pointer-events: none; }
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: var(--white); color: var(--black); border-bottom: 1px solid var(--concrete);
	transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-scrolled { background: rgba(255,255,255,.97); box-shadow: 0 2px 14px rgba(32,33,36,.08); }
.header-bar { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 1rem; }

.brand { display: inline-flex; align-items: center; color: var(--black); text-decoration: none; line-height: 1; }
.brand:hover { color: var(--red-dark); }
.brand .custom-logo { max-height: 44px; width: auto; }
.brand-name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; letter-spacing: .01em; }

.nav-toggle { display: none; width: 48px; height: 48px; background: transparent; border: 0; color: var(--black); cursor: pointer; position: relative; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { position: absolute; left: 12px; width: 24px; height: 2px; background: currentColor; content: ""; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle-bars { top: 23px; }
.nav-toggle-bars::before { top: -7px; left: 0; }
.nav-toggle-bars::after { top: 7px; left: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav .menu { display: flex; flex-wrap: wrap; gap: .25rem 1.4rem; list-style: none; margin: 0; padding: 0; }
.site-nav .menu a {
	position: relative; display: inline-block; padding: .5rem 0; color: var(--black); text-decoration: none; font-size: .9375rem; font-weight: 500;
}
.site-nav .menu a::after { content: ""; position: absolute; left: 0; right: 0; bottom: .15rem; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.site-nav .menu a:hover::after, .site-nav .menu .current-menu-item > a::after, .site-nav .menu .current_page_item > a::after { transform: scaleX(1); }
.site-nav .menu > li { position: relative; }
.site-nav .menu-item-has-children > a::before { content: ""; display: none; }
.site-nav .sub-menu { list-style: none; margin: 0; padding: .5rem 0; min-width: 15rem; background: var(--white); border: 1px solid var(--concrete); border-top: 2px solid var(--red); box-shadow: 0 12px 24px rgba(32,33,36,.12); }
@media (min-width: 1041px) {
	.site-nav .sub-menu { position: absolute; left: -1rem; top: 100%; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s .2s; z-index: 5; }
	.site-nav .menu > li:hover > .sub-menu, .site-nav .menu > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
	.site-nav .sub-menu a { display: block; padding: .6rem 1rem; white-space: nowrap; }
	.site-nav .sub-menu a::after { left: 1rem; right: 1rem; }
}

@media (max-width: 1040px) {
	.nav-toggle { display: inline-block; }
	.site-nav { position: absolute; inset: 100% 0 auto 0; flex-direction: column; align-items: stretch; gap: 1rem; background: var(--white); padding: 1rem var(--gutter) 1.5rem; border-top: 1px solid var(--concrete); box-shadow: 0 12px 24px rgba(32,33,36,.1); }
	.js .site-nav { visibility: hidden; opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s; }
	.js .site-nav.is-open { visibility: visible; opacity: 1; transform: none; pointer-events: auto; transition-delay: 0s; }
	.site-nav .menu { flex-direction: column; gap: 0; }
	.site-nav .menu a { display: block; padding: .9rem 0; border-bottom: 1px solid var(--mist); font-size: 1.05rem; }
	.site-nav .menu a::after { display: none; }
	.site-nav .sub-menu { border: 0; box-shadow: none; padding: 0 0 0 1rem; min-width: 0; }
	.site-nav .sub-menu a { font-size: .975rem; color: var(--text-2); }
	.nav-cta { width: 100%; }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--warm); overflow: hidden; }
.hero-inner { display: grid; gap: 2.25rem; align-items: center; padding-block: clamp(2.25rem, 6vw, 5rem); }
.hero-title { font-size: clamp(2.2rem, 5.8vw, 3.9rem); max-width: 17ch; margin-bottom: .5em; animation: fesp-rise .7s var(--ease) both; }
.hero-text { font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--graphite); max-width: 34rem; animation: fesp-fade .8s .12s var(--ease) both; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; animation: fesp-fade .8s .24s var(--ease) both; }
.hero-figure { position: relative; margin: 0 14px 14px 0; animation: fesp-fade .9s .1s var(--ease) both; }
.hero-figure::before { content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 1px solid var(--red); }
.hero-photo-wrap { position: relative; z-index: 1; overflow: hidden; background: var(--concrete); }
.hero-photo { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; animation: fesp-photo 1.8s var(--ease) both; }
.hero-aside { background: var(--white); border: 1px solid var(--concrete); border-top: 3px solid var(--red); padding: 1.5rem; animation: fesp-fade .9s .2s var(--ease) both; }
.aside-title { font-size: 1.35rem; margin-bottom: .75rem; }
.hero-aside ul { list-style: none; margin: 0; padding: 0; }
.hero-aside li + li { border-top: 1px solid var(--mist); }
.hero-aside a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .95rem 0; color: var(--black); text-decoration: none; font-weight: 500; transition: padding-left .3s var(--ease), color .3s; }
.hero-aside a:hover { padding-left: .5rem; color: var(--red-dark); }
.hero-aside i, .related-list i, .guide-feature i, .card-more i { display: block; flex: none; width: .7rem; height: .7rem; border-top: 2px solid var(--red); border-right: 2px solid var(--red); transform: rotate(45deg); transition: transform .3s var(--ease); }
.hero-aside a:hover i { transform: translateX(5px) rotate(45deg); }
@media (min-width: 900px) {
	.hero-inner { grid-template-columns: 1.1fr .9fr; gap: 4.5rem; }
	.hero-photo { aspect-ratio: 4 / 5; }
	.hero--text .hero-inner { grid-template-columns: 1.25fr .75fr; }
}

/* ---------- Seções da home ---------- */
section { position: relative; }
.section-head { max-width: 38rem; margin-bottom: 2.25rem; }
.section-head h2, .guide-main h2, .feature-copy h2, .about-copy h2 { font-size: clamp(1.8rem, 4.2vw, 2.6rem); }
.section-head h2::before, .guide-main h2::before, .feature-copy h2::before, .about-copy h2::before { content: ""; display: block; width: 48px; height: 3px; margin-bottom: 1rem; background: var(--red); transform-origin: left; transition: transform .8s .15s var(--ease); }
.pending h2::before { transform: scaleX(0); }
.section-head p { color: var(--text-2); font-size: 1.0625rem; }

/* Acolhimento e orientação */
.about { padding-block: clamp(3.5rem, 8vw, 6rem); background: var(--white); }
.about-grid { display: grid; gap: 2rem; align-items: center; }
.about-figure { margin: 0; overflow: hidden; background: var(--concrete); }
.about-figure img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1.2s var(--ease); }
.about-figure:hover img { transform: scale(1.03); }
.about-copy .lead { font-family: var(--font-read); font-size: clamp(1.15rem, 2.2vw, 1.35rem); line-height: 1.6; color: var(--graphite); }
.about-copy p { max-width: 38rem; }
.about-copy p:not(.lead) { color: var(--text-2); }
@media (min-width: 900px) {
	.about-grid { grid-template-columns: 5fr 6fr; column-gap: 5rem; }
	.about--text .about-grid { grid-template-columns: 1fr; max-width: 50rem; }
}

/* Serviços — cards com fotografia */
.services { padding-block: clamp(3.5rem, 8vw, 6rem); background: var(--mist); }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { position: relative; background: var(--white); border: 1px solid var(--concrete); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.card::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); z-index: 2; }
.card:hover, .card:focus-within { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(32,33,36,.1); }
.card:hover::before, .card:focus-within::before { transform: scaleX(1); }
.card a { display: flex; flex-direction: column; height: 100%; color: var(--black); text-decoration: none; }
.card-media { display: block; overflow: hidden; background: var(--concrete); }
.card-media img { width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card-media img { transform: scale(1.05); }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 1.4rem 1.4rem 1.5rem; }
.card--text .card-body { padding-top: 1.9rem; }
.card-title { font-size: 1.4rem; margin-bottom: .4rem; }
.card-text { color: var(--text-2); margin-bottom: 1.1rem; }
.card-more { display: inline-flex; align-items: center; gap: .6rem; margin-top: auto; font-weight: 600; color: var(--red-dark); }
.card:hover .card-more i { transform: translateX(5px) rotate(45deg); }

/* Como funciona — etapas simples */
.steps { padding-block: clamp(3.5rem, 8vw, 6rem); background: var(--warm); }
.steps-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.75rem; counter-reset: step; }
.steps-list li { counter-increment: step; padding-top: 1.1rem; border-top: 1px solid var(--concrete); }
.steps-list li::before { content: "0" counter(step); display: block; margin-bottom: .6rem; font-family: var(--font-display); font-size: 1.1rem; color: var(--red-dark); }
.steps-list h3 { font-size: 1.3rem; margin-bottom: .35em; }
.steps-list p { color: var(--text-2); margin: 0; max-width: 22rem; }
@media (min-width: 640px) { .steps-list { grid-template-columns: repeat(2, 1fr); gap: 2rem 2.5rem; } }
@media (min-width: 1000px) { .steps-list { grid-template-columns: repeat(4, 1fr); } }

/* Orientações importantes */
.guides { padding-block: clamp(3.5rem, 8vw, 6rem); background: var(--white); }
.guides-grid { display: grid; gap: 2rem; }
.guide-main > p { color: var(--text-2); max-width: 28rem; }
.guide-feature { position: relative; display: block; margin-top: 1.5rem; padding: 1.75rem 3.25rem 1.75rem 1.75rem; background: var(--graphite); color: var(--white); text-decoration: none; overflow: hidden; transition: background-color .3s var(--ease); }
.guide-feature::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--red); transition: width .35s var(--ease); }
.guide-feature:hover { background: var(--black); color: var(--white); }
.guide-feature:hover::before { width: 12px; }
.guide-feature strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; line-height: 1.15; margin-bottom: .4rem; }
.guide-feature span { color: var(--concrete); }
.guide-feature i { position: absolute; right: 1.5rem; top: 50%; margin-top: -.35rem; border-color: var(--white); }
.guide-side { display: grid; align-content: start; border-top: 1px solid var(--concrete); }
.guide-link { display: block; padding: 1.25rem 0; border-bottom: 1px solid var(--concrete); color: var(--black); text-decoration: none; transition: padding-left .3s var(--ease); }
.guide-link:hover { padding-left: .75rem; color: var(--black); }
.guide-link strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; line-height: 1.2; }
.guide-link span { color: var(--text-2); font-size: .95rem; }
@media (min-width: 900px) { .guides-grid { grid-template-columns: 6fr 5fr; column-gap: 5rem; align-items: start; } }

/* Destaque — flores e urnas */
.feature { padding-block: clamp(3rem, 7vw, 5rem); background: var(--mist); }
.feature-grid { display: grid; gap: 2rem; align-items: center; }
.feature-media { margin: 0; overflow: hidden; background: var(--concrete); }
.feature-media img { width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; transition: transform 1.2s var(--ease); }
.feature-media:hover img { transform: scale(1.03); }
.feature-copy p { color: var(--graphite); max-width: 32rem; }
.feature-links { display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin-top: 1.5rem; }
@media (min-width: 900px) { .feature-grid { grid-template-columns: 5fr 6fr; column-gap: 4rem; } .feature--text .feature-grid { grid-template-columns: 1fr; max-width: 50rem; } }

/* FAQ */
.faq-section { padding-block: clamp(3.5rem, 8vw, 6rem); background: var(--white); }
.faq-grid { display: grid; gap: 2rem; }
@media (min-width: 900px) { .faq-grid { grid-template-columns: 4fr 7fr; column-gap: 5rem; } }
.faq { border-top: 1px solid var(--concrete); }
.faq-item { border-bottom: 1px solid var(--concrete); }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 56px; padding: 1rem 0; cursor: pointer; list-style: none; font-family: var(--font-display); font-size: 1.2rem; line-height: 1.25; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i { flex: none; position: relative; width: 18px; height: 18px; }
.faq-item summary i::before, .faq-item summary i::after { content: ""; position: absolute; background: var(--red); transition: transform .3s var(--ease); }
.faq-item summary i::before { left: 0; right: 0; top: 8px; height: 2px; }
.faq-item summary i::after { top: 0; bottom: 0; left: 8px; width: 2px; }
.faq-item[open] summary i::after { transform: scaleY(0); }
.faq-body { padding: 0 2.5rem 1.25rem 0; color: var(--text-2); max-width: 44rem; }
@supports (interpolate-size: allow-keywords) {
	.faq-item { interpolate-size: allow-keywords; }
	.faq-item::details-content { block-size: 0; overflow: clip; transition: block-size .4s var(--ease), content-visibility .4s allow-discrete; }
	.faq-item[open]::details-content { block-size: auto; }
}
@supports not (interpolate-size: allow-keywords) { .faq-body { animation: fesp-fade .35s var(--ease); } }

/* Faixa de contato — vermelho escuro */
.contact-band, .cta-band { background: var(--red-dark); color: var(--white); padding-block: clamp(3rem, 7vw, 4.5rem); }
.contact-inner, .cta-inner { display: grid; gap: 1.5rem; align-items: center; }
.contact-band h2, .cta-band h2 { font-size: clamp(1.8rem, 4.2vw, 2.5rem); color: var(--white); }
.contact-band p, .cta-band p { color: #F1E3E4; max-width: 32rem; margin: 0; }
.contact-list { display: flex; flex-wrap: wrap; gap: .75rem; list-style: none; margin: 0; padding: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (min-width: 900px) { .contact-inner, .cta-inner { grid-template-columns: 1fr auto; gap: 3rem; } }

/* ---------- Páginas internas ---------- */
.page-hero { position: relative; background: var(--mist); color: var(--black); border-bottom: 1px solid var(--concrete); padding-block: clamp(2rem, 5vw, 3.5rem) clamp(2.5rem, 5vw, 3.75rem); overflow: hidden; }
.page-hero .wrap { position: relative; }
.page-title { font-size: clamp(2rem, 5vw, 3.1rem); max-width: 22ch; margin: 0; animation: fesp-rise .5s var(--ease) both; }
.page-lead { color: var(--graphite); font-size: 1.15rem; max-width: 40rem; margin: 1rem 0 0; }
.page-hero .searchform { margin-top: 1.25rem; }

.crumbs { margin-bottom: 1.25rem; font-size: .875rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .25rem .5rem; list-style: none; margin: 0; padding: 0; color: var(--text-2); }
.crumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--red); }
.crumbs a { color: var(--graphite); }
.crumbs a:hover { color: var(--red-dark); }

.page-layout { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.entry { max-width: 46rem; }
.page-layout--wide .entry { max-width: none; }
.entry-figure { margin: 0 0 2rem; }
.entry-figure img { width: 100%; height: auto; }
.prose { font-family: var(--font-read); font-size: 1.125rem; line-height: 1.75; color: var(--graphite); }
.prose h2 { font-family: var(--font-display); font-size: clamp(1.5rem, 3.5vw, 2rem); margin: 2em 0 .5em; color: var(--black); padding-top: 1rem; border-top: 1px solid var(--concrete); }
.prose h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.prose h3 { font-family: var(--font-display); font-size: 1.35rem; margin: 1.6em 0 .4em; color: var(--black); }
.prose li { margin-bottom: .45em; }
.prose a { color: var(--red-dark); font-weight: 600; }
.prose img { height: auto; }
.prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--concrete); }
.note { margin: 2rem 0 0; padding: 1rem 1.25rem; background: var(--mist); border-left: 4px solid var(--red); color: var(--graphite); font-family: var(--font-body); font-size: .9375rem; line-height: 1.55; }
.prose .note { font-family: var(--font-body); }

.related { padding-block: clamp(2.5rem, 6vw, 4rem); background: var(--mist); }
.related-title { font-size: clamp(1.5rem, 3.5vw, 2rem); }
.related-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--concrete); display: grid; }
.related-list li { border-bottom: 1px solid var(--concrete); }
.related-list a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 0; text-decoration: none; color: var(--black); font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; transition: padding-left .3s var(--ease); }
.related-list a:hover { padding-left: .6rem; }
.related-list a:hover i { transform: translateX(6px) rotate(45deg); }
@media (min-width: 900px) { .related-list { grid-template-columns: 1fr 1fr; column-gap: 3rem; } }

/* Contato */
.contact-layout { display: grid; gap: 2.5rem; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
@media (min-width: 900px) { .contact-layout { grid-template-columns: 5fr 6fr; column-gap: 5rem; align-items: start; } }
.contact-data { margin: 1.5rem 0 0; }
.contact-data dt { font-family: var(--font-display); font-weight: 700; margin-top: 1.1rem; }
.contact-data dd { margin: .15rem 0 0; color: var(--graphite); }
.contact-form-wrap { background: var(--white); border: 1px solid var(--concrete); padding: clamp(1.25rem, 4vw, 2.25rem); border-top: 4px solid var(--red); }
.form-title { font-size: 1.6rem; }
.form p { margin: 0 0 1.1rem; }
.form label { display: block; font-weight: 600; margin-bottom: .35rem; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form textarea {
	width: 100%; padding: .8rem .9rem; font: inherit; color: var(--black); background: var(--warm); border: 1px solid #8d8b88; border-radius: 2px;
}
.form textarea { resize: vertical; min-height: 130px; }
.form small { display: block; margin-top: .35rem; color: var(--text-2); }
.form .check { display: flex; gap: .75rem; align-items: flex-start; }
.form .check input { flex: none; width: 22px; height: 22px; margin-top: .15rem; accent-color: var(--red); }
.form .check label { font-weight: 400; margin: 0; font-size: .9375rem; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { padding: .9rem 1rem; margin-bottom: 1.25rem; border-left: 4px solid; font-weight: 500; }
.form-msg--ok { background: #EEF2EE; border-color: var(--graphite); color: var(--black); }
.form-msg--erro { background: #FBEDEE; border-color: var(--red); color: var(--red-dark); }

/* Blog */
.post-grid { display: grid; gap: 2rem; }
@media (min-width: 700px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }
.post-card { display: flex; flex-direction: column; border-top: 3px solid var(--black); padding-top: 1rem; }
.post-card-img { display: block; overflow: hidden; margin-bottom: 1rem; }
.post-card-img img { width: 100%; aspect-ratio: 8/5; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover .post-card-img img { transform: scale(1.04); }
.post-card-title { font-size: 1.45rem; margin: .25rem 0 .5rem; }
.post-card-title a { color: var(--black); text-decoration: none; }
.post-card-title a:hover { color: var(--red-dark); }
.post-card p { color: var(--text-2); }
.meta { font-size: .875rem; color: var(--text-2); margin: 0; }
.meta a { color: inherit; }
.meta--light { color: var(--text-2); margin-top: 1rem; }
.more { font-weight: 600; color: var(--red-dark); }
.pager { margin-top: 2.5rem; }
.pager .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 .75rem; margin: 0 .25rem .5rem 0; border: 1px solid var(--concrete); color: var(--black); text-decoration: none; background: var(--white); }
.pager .page-numbers.current, .pager .page-numbers:hover { background: var(--black); color: var(--white); border-color: var(--black); }
.post-nav { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: 2.5rem; }
.post-nav a { font-weight: 600; }
.tags { margin-top: 1.5rem; font-size: .9rem; }
.search-results { list-style: none; margin: 0; padding: 0; max-width: 46rem; }
.search-results li { padding: 1.25rem 0; border-bottom: 1px solid var(--concrete); }
.search-results a { font-family: var(--font-display); font-size: 1.35rem; color: var(--black); }
.search-results span { display: block; color: var(--text-2); margin-top: .25rem; }
.empty { font-size: 1.1rem; color: var(--graphite); }
.searchform { display: flex; gap: .5rem; max-width: 30rem; }
.searchform input[type="search"] { flex: 1; min-width: 0; padding: .65rem .9rem; font: inherit; background: var(--white); border: 1px solid var(--concrete); border-radius: 2px; }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--black); color: var(--concrete); border-top: 4px solid var(--red); padding-top: clamp(2.5rem, 6vw, 4rem); }
.site-footer a { color: var(--white); text-decoration: none; background-image: linear-gradient(var(--red), var(--red)); background-size: 0 2px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .3s var(--ease); }
.site-footer a:hover { color: var(--white); background-size: 100% 2px; }
.footer-grid { display: grid; gap: 2rem; padding-bottom: 2.5rem; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 2.5rem; } }
.footer-brand { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--white); margin-bottom: .5rem; }
.footer-title { font-size: 1rem; font-family: var(--font-display); color: var(--white); margin-bottom: .9rem; padding-bottom: .5rem; border-bottom: 1px solid rgba(255,255,255,.15); }
.footer-col ul, .footer-social { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: .5rem; }
.footer-col li.plain { color: var(--concrete); }
.footer-social { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: 1rem; }
.footer-base { display: grid; gap: .5rem; padding-block: 1.25rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .875rem; }
.footer-base p { margin: 0; }
.footer-note { color: #A9A7A4; }

/* ---------- WhatsApp ---------- */
.wa-float {
	position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 40;
	display: inline-flex; align-items: center; gap: .5rem; min-height: 48px; padding: .75rem 1.1rem;
	background: var(--black); color: var(--white); border: 2px solid var(--red); border-radius: 2px;
	font-weight: 600; text-decoration: none; box-shadow: 0 2px 10px rgba(0,0,0,.25);
	transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.wa-float:hover { background: var(--red); color: var(--white); transform: translateY(-2px); }
.wa-float svg { color: var(--white); }
@media (max-width: 480px) { .wa-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } .wa-float { padding: .75rem; } .site-footer { padding-bottom: 4.5rem; } }

/* ---------- Revelação ao rolar (só quando o JS marca como pendente) ---------- */
[data-reveal] { transition: opacity .6s var(--ease), transform .6s var(--ease); }
[data-reveal].pending { opacity: 0; transform: translateY(14px); }
.cards .card:nth-child(2), .steps-list li:nth-child(2) { transition-delay: .08s; } .cards .card:nth-child(3), .steps-list li:nth-child(3) { transition-delay: .16s; }
.cards .card:nth-child(5) { transition-delay: .08s; } .cards .card:nth-child(6) { transition-delay: .16s; } .steps-list li:nth-child(4) { transition-delay: .24s; }

/* ---------- Keyframes ---------- */
@keyframes fesp-rise { from { transform: translateY(14px); } to { transform: none; } }
@keyframes fesp-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes fesp-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes fesp-photo { from { transform: scale(1.07); } to { transform: none; } }

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
	[data-reveal].pending { opacity: 1; transform: none; }
}

/* Linha decorativa discreta nos cabeçalhos internos */
.page-hero .hero-rule { position: absolute; left: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter))); bottom: 0; width: 72px; height: 3px; background: var(--red); transform-origin: left; animation: fesp-line 1s .3s var(--ease) both; }

/* Mapa do site */
.sitemap { display: grid; gap: 2rem; }
@media (min-width: 800px) { .sitemap { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }
.sitemap-group h2 { font-size: 1.4rem; padding-bottom: .6rem; border-bottom: 1px solid var(--concrete); }
.sitemap-group ul { list-style: none; margin: 0; padding: 0; }
.sitemap-group li { margin-bottom: .6rem; }
.sitemap-group a { color: var(--black); }
.sitemap-group a:hover { color: var(--red-dark); }
