/*
Theme Name: Envio de Documentos
Description: A custom block theme scaffolded by Studio Code.
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.2
Version: 0.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: enviadocs
Tags: full-site-editing, block-patterns, block-styles, wide-blocks, accessibility-ready, style-variations
*/

/* WordPress inserts margin-block-start: var(--wp--style--block-gap) between the
   template's top-level sections (header part, main, footer part) — a gap that
   exists even when no markup asks for it. Zero it so sections butt edge-to-edge
   and own their vertical rhythm via padding; this does not affect block gaps
   inside nested layouts. */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}

/* With that gap gone, main carries its own vertical padding so templates this
   theme does not author (WooCommerce shop, product, cart…) still clear the
   header and footer. A descendant selector, not a child one: WooCommerce wraps
   the single-product main in an extra group. Templates built from full-bleed
   sections opt out with is-flush and let the sections own the rhythm. */
.wp-site-blocks main {
	padding-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--70);
}
.wp-site-blocks main.is-flush {
	padding-block: 0;
}

/* === Aurora — Envio de Documentos === */
:root {
	--fs-primary: var(--wp--preset--color--primary);
	--fs-text: var(--wp--preset--color--text);
	--fs-secondary: var(--wp--preset--color--secondary);
	--fs-rule: var(--wp--preset--color--rule);
	--fs-coral: var(--wp--preset--color--accent-coral);
	--fs-violet: var(--wp--preset--color--accent-violet);
	--fs-gutter: var(--wp--style--root--padding-left);
	--fs-radius: var(--wp--custom--rounded--lg);
}

/* ---- cabeçalho ---- */
.site-header {
	border-bottom: 1px solid var(--fs-rule);
}
.site-header > .wp-block-group {
	padding-inline: var(--fs-gutter);
}
/* a variável root pode não estar definida no contexto do template part —
   garante o gutter com a mesma escala do tema */
.site-header > .wp-block-group {
	padding-inline: clamp(1.25rem, 5vw, 3rem);
}
.brand-name {
	font-weight: 700;
	font-size: 1.15rem;
	letter-spacing: -0.02em;
	margin: 0;
}
.header-nav {
	align-items: center;
	gap: clamp(1rem, 3vw, 2rem);
	flex-wrap: wrap;
}
.nav-link {
	margin: 0;
	font-weight: 500;
	color: var(--fs-secondary);
}
.nav-link a {
	color: inherit;
	text-decoration: none;
	transition: color 150ms ease;
}
.nav-link a:hover {
	color: var(--fs-primary);
}

/* ---- hero ---- */
.hero {
	position: relative;
	overflow: hidden;
}
.hero::before {
	content: "";
	position: absolute;
	inset: -10%;
	z-index: 0;
	background:
		radial-gradient(55% 50% at 82% 22%, rgba(139, 92, 246, 0.40), transparent 70%),
		radial-gradient(50% 45% at 12% 28%, rgba(79, 140, 255, 0.38), transparent 72%),
		radial-gradient(38% 38% at 88% 88%, rgba(255, 111, 97, 0.34), transparent 70%);
	filter: blur(48px);
	animation: fs-glow-drift 26s ease-in-out infinite;
}
.hero > .wp-block-group {
	position: relative;
	z-index: 1;
}
.hero-eyebrow {
	display: inline-flex;
	align-items: center;
	margin: 0;
	padding: 6px 14px;
	border: 1px solid rgba(79, 140, 255, 0.35);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.6);
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--fs-primary);
}
.hero-title {
	margin: 1.5rem 0 1rem;
	max-width: 12ch;
}
.hero-sub {
	color: var(--fs-secondary);
	max-width: 30rem;
	margin: 0 0 2rem;
}
.hero-actions {
	gap: 0.75rem;
}
.hero-image img {
	border-radius: var(--fs-radius);
	border: 1px solid rgba(255, 255, 255, 0.7);
	box-shadow: 0 34px 70px rgba(15, 23, 42, 0.16);
	transform: rotate(-2deg) scale(1.02);
}

/* ---- secções (faixas separadas por linha fina) ---- */
.features, .howto, .security {
	border-top: 1px solid var(--fs-rule);
}
.section-note {
	color: var(--fs-secondary);
	font-weight: 500;
	margin: 0;
}

/* ---- cartões ---- */
.is-style-card {
	padding: 18px;
	background: var(--wp--preset--color--background);
	border: 1px solid var(--fs-rule);
	border-radius: var(--fs-radius);
	height: 100%;
	transition: transform 200ms ease, box-shadow 200ms ease;
}
.is-style-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}
.card-image {
	margin: 0 0 1.1rem;
}
.card-image img {
	width: 100%;
	height: 190px;
	object-fit: cover;
	border-radius: 12px;
}

/* ---- como funciona ---- */
.step-number {
	font-size: 3rem;
	font-weight: 600;
	line-height: 1;
	color: var(--fs-primary);
	margin: 0 0 1rem;
}

/* ---- segurança ---- */
.secure-list {
	list-style: none;
	padding: 0;
	margin: 0;
}
.secure-list li {
	position: relative;
	padding-left: 1.6rem;
	margin-bottom: 0.75rem;
}
.secure-list li::before {
	content: "✓";
	position: absolute;
	left: 0;
	color: var(--fs-primary);
	font-weight: 700;
}

/* ---- CTA ---- */
.cta-glow {
	position: relative;
	overflow: hidden;
}
.cta-glow::before {
	content: "";
	position: absolute;
	inset: -10%;
	z-index: 0;
	background:
		radial-gradient(52% 48% at 30% 30%, rgba(79, 140, 255, 0.40), transparent 70%),
		radial-gradient(42% 42% at 78% 22%, rgba(139, 92, 246, 0.36), transparent 72%),
		radial-gradient(34% 34% at 50% 95%, rgba(255, 111, 97, 0.30), transparent 70%);
	filter: blur(48px);
	animation: fs-glow-drift 26s ease-in-out infinite;
}
.cta-glow > .wp-block-group {
	position: relative;
	z-index: 1;
}
.cta-inner {
	text-align: center;
	align-items: center;
}
.cta-title {
	max-width: 16ch;
	margin-inline: auto;
	margin-top: 0;
}
.cta-sub {
	color: var(--fs-secondary);
	max-width: 34rem;
	margin-inline: auto;
	margin-top: 1rem;
}
.cta-inner .wp-block-buttons {
	margin-top: 1.5rem;
}

/* faixas full-bleed empilhadas ficam coladas (sem block-gap entre elas) */
.wp-block-post-content > .alignfull + .alignfull {
	margin-top: 0;
}

/* ---- rodapé ---- */
.site-footer {
	border-top: 1px solid var(--fs-rule);
}
.site-footer > .wp-block-group {
	padding-inline: clamp(1.25rem, 5vw, 3rem);
}
.footer-note, .footer-copy {
	margin: 0;
	color: var(--fs-secondary);
}
.footer-copy {
	font-size: 0.9rem;
}

/* ---- movimento ---- */
@keyframes fs-glow-drift {
	0%, 100% { transform: translate(0, 0); }
	33% { transform: translate(-1.5%, 1.5%); }
	66% { transform: translate(1.5%, -1%); }
}
@media (prefers-reduced-motion: reduce) {
	.hero::before, .cta-glow::before {
		animation: none;
	}
	.is-style-card {
		transition: none;
	}
}

/* ---- responsive ---- */
@media (max-width: 782px) {
	.hero-image img {
		transform: rotate(0deg) scale(1);
	}
	.nav-link {
		display: none;
	}
	.is-style-card {
		margin-bottom: 0.5rem;
	}
}
