/**
 * Página de Ferramentas – layout premium
 * UI/UX moderna, inspirada no ToolsSection/Portal Bem-Estar
 */

.ferramentas-page {
	--ferramentas-primary: #0d9488;
	--ferramentas-primary-dark: #0f766e;
	--ferramentas-accent: #22c55e;
	--ferramentas-bg: #f8fafc;
	--ferramentas-border: #e2e8f0;
	--ferramentas-text: #0f172a;
	--ferramentas-muted: #64748b;
	background: var(--ferramentas-bg);
	color: var(--ferramentas-text);
}

.ferramentas-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1.5rem;
}

/* Breadcrumb */
.ferramentas-breadcrumb-bar {
	background: #f9fafb;
	border-bottom: 1px solid #e5e7eb;
}

.ferramentas-breadcrumb {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.875rem;
	color: #4b5563;
	padding: 0.75rem 0;
	flex-wrap: wrap;
}

.ferramentas-breadcrumb a {
	color: #4b5563;
	text-decoration: none;
	transition: color 0.2s ease;
}

.ferramentas-breadcrumb a:hover {
	color: var(--ferramentas-primary);
}

.ferramentas-breadcrumb-current {
	color: #111827;
	font-weight: 600;
}

.ferramentas-breadcrumb svg {
	width: 0.875rem;
	height: 0.875rem;
	color: #9ca3af;
}

/* Hero */
.ferramentas-hero {
	position: relative;
	padding: 3.5rem 0 4.5rem;
	overflow: hidden;
}

.ferramentas-hero-bg {
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at top left, #14b8a6, #0f766e 40%, #0369a1 100%);
}

.ferramentas-hero-pattern {
	position: absolute;
	inset: 0;
	opacity: 0.14;
	background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 6h12v12H6zM30 6h12v12H30zM18 18h12v12H18zM42 18h12v12H42zM6 30h12v12H6zM30 30h12v12H30zM18 42h12v12H18zM42 42h12v12H42z' fill='%23ffffff' fill-opacity='0.22'/%3E%3C/svg%3E");
}

.ferramentas-hero-glow {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at top right, rgba(255, 255, 255, 0.3), transparent 55%),
		radial-gradient(circle at bottom left, rgba(45, 212, 191, 0.25), transparent 55%);
	pointer-events: none;
}

.ferramentas-hero-inner {
	position: relative;
	z-index: 1;
}

.ferramentas-hero-content {
	max-width: 50rem;
	margin: 0 auto;
	text-align: center;
	color: #ecfeff;
}

.ferramentas-hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.4rem 0.9rem;
	border-radius: 9999px;
	background: rgba(15, 23, 42, 0.4);
	border: 1px solid rgba(255, 255, 255, 0.4);
	font-size: 0.82rem;
	font-weight: 500;
	margin-bottom: 1rem;
	backdrop-filter: blur(10px);
}

.ferramentas-hero-badge svg {
	width: 1rem;
	height: 1rem;
}

.ferramentas-hero-title {
	font-size: clamp(2rem, 3.2vw, 2.9rem);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.03em;
	margin: 0 0 1rem;
	color: #f9fafb;
	text-shadow: 0 1px 3px rgba(15, 23, 42, 0.4);
}

.ferramentas-hero-desc {
	font-size: 1.02rem;
	line-height: 1.8;
	margin: 0 auto 1.5rem;
	max-width: 40rem;
	color: rgba(240, 253, 250, 0.95);
}

.ferramentas-hero-search {
	max-width: 34rem;
	margin: 0 auto 1.25rem;
}

.ferramentas-hero-search-wrap {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.6rem 0.85rem;
	border-radius: 0.9rem;
	background: rgba(15, 23, 42, 0.55);
	border: 1px solid rgba(148, 163, 184, 0.8);
	backdrop-filter: blur(12px);
}

.ferramentas-hero-search-wrap svg {
	width: 1rem;
	height: 1rem;
	color: rgba(226, 232, 240, 0.9);
}

.ferramentas-hero-search-input {
	flex: 1;
	border: none;
	outline: none;
	background: transparent;
	color: #f9fafb;
	font-size: 0.93rem;
}

.ferramentas-hero-search-input::placeholder {
	color: rgba(203, 213, 225, 0.95);
}

.ferramentas-hero-clear {
	font-size: 0.8rem;
	font-weight: 600;
	color: #a5f3fc;
	text-decoration: none;
	padding: 0.25rem 0.6rem;
	border-radius: 9999px;
	background: rgba(15, 23, 42, 0.6);
	border: 1px solid rgba(148, 163, 184, 0.9);
}

.ferramentas-hero-clear:hover {
	background: rgba(15, 23, 42, 0.9);
}

.ferramentas-hero-stats {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 1.4rem;
	margin: 0.75rem 0 1.25rem;
}

.ferramentas-hero-stat {
	text-align: center;
}

.ferramentas-hero-stat-value {
	font-size: 1.25rem;
	font-weight: 700;
	color: #ecfeff;
	margin-bottom: 0.1rem;
}

.ferramentas-hero-stat-label {
	font-size: 0.8rem;
	color: rgba(226, 232, 240, 0.9);
}

.ferramentas-hero-actions {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.8rem;
	margin-bottom: 1.1rem;
}

.ferramentas-hero-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.7rem 1.3rem;
	border-radius: 9999px;
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.2s ease;
}

.ferramentas-hero-btn svg {
	width: 1.1rem;
	height: 1.1rem;
}

.ferramentas-hero-btn-primary {
	background: #ecfeff;
	color: #0f766e;
	box-shadow: 0 4px 18px rgba(15, 23, 42, 0.3);
}

.ferramentas-hero-btn-primary:hover {
	background: #ccfbf1;
	transform: translateY(-1px);
	box-shadow: 0 7px 24px rgba(15, 23, 42, 0.38);
}

.ferramentas-hero-btn-outline {
	background: transparent;
	color: #e0f2fe;
	border: 1px solid rgba(224, 242, 254, 0.9);
}

.ferramentas-hero-btn-outline:hover {
	background: rgba(15, 23, 42, 0.4);
}

.ferramentas-hero-disclaimer {
	margin-top: 0.75rem;
	display: inline-flex;
	align-items: flex-start;
	gap: 0.5rem;
	padding: 0.65rem 0.85rem;
	border-radius: 0.7rem;
	background: rgba(15, 23, 42, 0.55);
	border: 1px solid rgba(15, 23, 42, 0.8);
	font-size: 0.8rem;
	color: rgba(226, 232, 240, 0.95);
}

.ferramentas-hero-disclaimer svg {
	width: 1rem;
	height: 1rem;
	color: #fbbf24;
	margin-top: 0.05rem;
}

.ferramentas-hero-wave {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 80px;
	background: linear-gradient(to top, #f8fafc, transparent);
}

/* Seções base */
.ferramentas-section {
	padding: 2.75rem 0;
}

.ferramentas-section-highlight {
	background: #f9fafb;
	border-bottom: 1px solid #e5e7eb;
}

.ferramentas-section-all {
	background: #ffffff;
}

.ferramentas-section-info {
	background: #f8fafc;
	border-top: 1px solid #e5e7eb;
}

.ferramentas-section-faq {
	background: #ffffff;
	border-top: 1px solid #e5e7eb;
}

.ferramentas-section-legal {
	background: #f1f5f9;
	border-top: 1px solid #e5e7eb;
}

.ferramentas-section-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
	.ferramentas-section-header {
		flex-direction: column;
		align-items: flex-start;
	}
}

.ferramentas-section-title {
	font-size: 1.4rem;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 0.2rem;
}

.ferramentas-section-subtitle {
	font-size: 0.9rem;
	color: var(--ferramentas-muted);
	margin: 0;
}

.ferramentas-section-actions {
	display: flex;
	gap: 0.5rem;
}

.ferramentas-link-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.45rem 0.9rem;
	border-radius: 9999px;
	font-size: 0.82rem;
	font-weight: 600;
	text-decoration: none;
	background: #ecfeff;
	color: #0f766e;
	border: 1px solid #a5f3fc;
}

.ferramentas-link-pill svg {
	width: 0.95rem;
	height: 0.95rem;
}

.ferramentas-link-pill:hover {
	background: #a5f3fc;
	color: #0f172a;
}

/* Grid de ferramentas */
.ferramentas-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}

@media (min-width: 640px) {
	.ferramentas-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.ferramentas-grid-all {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.ferramenta-card {
	display: block;
	text-decoration: none;
	background: #ffffff;
	border-radius: 0.9rem;
	border: 1px solid var(--ferramentas-border);
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
	transition: all 0.18s ease;
}

.ferramenta-card-featured {
	background: radial-gradient(circle at top left, #ecfeff, #ffffff);
	border-color: #bae6fd;
}

.ferramenta-card-inner {
	display: flex;
	align-items: flex-start;
	gap: 0.9rem;
	padding: 1.1rem 1.2rem;
}

.ferramenta-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 0.85rem;
	background: rgba(13, 148, 136, 0.1);
	color: #0d9488;
	flex-shrink: 0;
}

.ferramenta-icon svg {
	width: 1.25rem;
	height: 1.25rem;
}

.ferramenta-main {
	min-width: 0;
	flex: 1;
}

.ferramenta-title {
	font-size: 0.98rem;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 0.2rem;
}

.ferramenta-desc {
	font-size: 0.84rem;
	color: #6b7280;
	line-height: 1.6;
	margin: 0 0 0.45rem;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ferramenta-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	font-size: 0.75rem;
}

.ferramenta-badge {
	display: inline-flex;
	align-items: center;
	padding: 0.18rem 0.6rem;
	border-radius: 9999px;
	background: #ecfeff;
	color: #0f766e;
	border: 1px solid #a5f3fc;
	font-weight: 600;
}

.ferramenta-meta-item {
	display: inline-flex;
	align-items: center;
	padding: 0.18rem 0.55rem;
	border-radius: 9999px;
	background: #f3f4f6;
	color: #4b5563;
}

.ferramenta-cta {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: center;
	gap: 0.25rem;
	font-size: 0.78rem;
	font-weight: 600;
	color: #0f766e;
}

.ferramenta-cta svg {
	width: 0.95rem;
	height: 0.95rem;
}

.ferramenta-card:hover {
	border-color: #0d9488;
	box-shadow: 0 10px 28px -14px rgba(15, 118, 110, 0.75);
	transform: translateY(-1px);
}

.ferramenta-card:hover .ferramenta-title {
	color: #0f766e;
}

/* Empty state */
.ferramentas-empty {
	text-align: center;
	padding: 3rem 1rem;
	background: #f9fafb;
	border-radius: 0.9rem;
	border: 1px dashed #e5e7eb;
}

.ferramentas-empty-icon {
	width: 2.4rem;
	height: 2.4rem;
	margin-bottom: 0.75rem;
	color: #64748b;
}

.ferramentas-empty h3 {
	font-size: 1.05rem;
	font-weight: 700;
	color: #111827;
	margin: 0 0 0.3rem;
}

.ferramentas-empty p {
	font-size: 0.88rem;
	color: #6b7280;
	margin: 0 0 0.7rem;
}

.ferramentas-empty-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.3rem;
	padding: 0.6rem 1.2rem;
	border-radius: 9999px;
	border: 1px solid #0d9488;
	background: #ecfeff;
	color: #0f766e;
	font-size: 0.86rem;
	font-weight: 600;
	text-decoration: none;
}

.ferramentas-empty-btn:hover {
	background: #a5f3fc;
	color: #0f172a;
}

/* Info grid */
.ferramentas-info-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.1rem;
}

@media (min-width: 768px) {
	.ferramentas-info-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.ferramentas-info-card {
	background: #ffffff;
	border-radius: 0.9rem;
	border: 1px solid #e2e8f0;
	padding: 1.25rem 1.35rem;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.ferramentas-info-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.1rem;
	height: 2.1rem;
	border-radius: 0.7rem;
	background: rgba(8, 145, 178, 0.1);
	color: #0ea5e9;
	margin-bottom: 0.6rem;
}

.ferramentas-info-card h3 {
	font-size: 0.98rem;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 0.3rem;
}

.ferramentas-info-card p {
	font-size: 0.86rem;
	color: #4b5563;
	line-height: 1.6;
	margin: 0;
}

/* FAQ */
.ferramentas-faq-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}

@media (min-width: 768px) {
	.ferramentas-faq-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.ferramentas-faq-item {
	background: #f9fafb;
	border-radius: 0.9rem;
	border: 1px solid #e5e7eb;
	padding: 1.1rem 1.2rem;
}

.ferramentas-faq-item h3 {
	font-size: 0.95rem;
	font-weight: 700;
	color: #111827;
	margin: 0 0 0.4rem;
}

.ferramentas-faq-item p {
	font-size: 0.84rem;
	color: #4b5563;
	line-height: 1.6;
	margin: 0;
}

/* Aviso legal */
.ferramentas-legal {
	display: flex;
	gap: 0.75rem;
	padding: 1.2rem 1.3rem;
	background: #eff6ff;
	border-radius: 0.9rem;
	border: 1px solid #bfdbfe;
	font-size: 0.85rem;
	color: #1e3a8a;
	line-height: 1.7;
}

.ferramentas-legal-icon {
	flex-shrink: 0;
	color: #1d4ed8;
}

.ferramentas-legal-icon svg {
	width: 1.2rem;
	height: 1.2rem;
}

/* Scroll to top */
.ferramentas-scroll-top {
	position: fixed;
	bottom: 1.5rem;
	right: 1.5rem;
	z-index: 50;
	width: 2.75rem;
	height: 2.75rem;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #0d9488;
	color: #fff;
	border: none;
	border-radius: 9999px;
	box-shadow: 0 4px 14px rgba(15, 118, 110, 0.5);
	cursor: pointer;
	transition: all 0.2s ease;
}

.ferramentas-scroll-top:hover {
	background: #0f766e;
	transform: scale(1.08);
	box-shadow: 0 6px 22px rgba(15, 118, 110, 0.6);
}

